Hi everybody,
I'm working on a little Contact-Form for a Website - normaly not such a hard thing.
When I load up my php-file /dev/build stops after the page-Point and the CMS-Interface returns a white screen instead of the Interface.
I didn't get any error-messages, also in dev-Mode.
By testing I found out that the error, (if it is based on my code) should be here:
class MailPage_Controller extends Page_Controller{
private static $allowed_actions = array('contactForm');
public funktion contactForm(){
$fields = new FieldList(new EmailField('Mail','Mail*'), new TextField('Betreff', 'Betreff*'), new TextareaField('Nachricht','Nachricht*'));
$actions= new FieldList( new FormAction('sendMail', 'Abschicken'));
$validator = new RequiredFields('Mail','Betreff','Nachricht');
return new Form($this, 'contactForm', $fields, $actions, $validator);
}
}
Thanks for help.