21489 Posts in 5783 Topics by 2622 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 201 Views |
-
Including UserForms on a template

28 October 2011 at 11:44pm
Hello,
I have a reservation form which is on www.mysite.com/form1
Everything is very nicely styled with css, also the custom errors are set.Now i have a pageType 'Diensten' where I want to include this form at the bottom of the page.
So i use:
Diensten.phpclass Diensten_Controller extends Page_Controller {
function ShowForm(){
$get = DataObject::get_one('UserDefinedForm');
return new UserDefinedForm_Controller($get);
}}
Diensten.ss
<% control ShowForm %>
$Form
<% end_control %>The form shows on all pages, BUT:
- the custom error messages are the default onces, not the onces i've set
- the styling of the error message is differentWHY? and HOW can i fix this?
| 201 Views | ||
|
Page:
1
|
Go to Top |
