3214 Posts in 848 Topics by 810 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 786 Views |
-
Extend UserForm - Page.ss not being used

9 January 2011 at 3:58pm Last edited: 9 January 2011 4:00pm
SS - 2.4.4
UF - 0.3.0I want to make a custom page from UserDefinedForm called ContactPage, so I can mess around with the layout without affecting future forms. I have done this as follows by creating ContactPage.php in mysite (not the userforms directory):
class ContactPage extends UserDefinedForm {
public static $db = array(
);public static $has_one = array(
);}
class ContactPage_Controller extends UserDefinedForm_Controller {public static $allowed_actions = array (
);public function init() {
parent::init();}
}dev/build and all seems well in the CMS. So I also make a ContactPage.ss template in /themes/mysite/Layout with some basic HTML.
When I view the new page, it seems that it is not even using the main Page.ss file as a base, let alone my custom sub template. All I see is the content and this line on a blank white page.
Generated with the default ContentController.ss template
Any ideas what I've done wrong here?
Aaron
| 786 Views | ||
|
Page:
1
|
Go to Top |

