Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Custom Form in a Page holder page - Possible


Go to End


2 Posts   1384 Views

Avatar
SaturnJ

Community Member, 4 Posts

25 November 2013 at 12:54am

Hi, I have a page holder page, and in the controll section if I try to create the form, the entire site goes down when it hits to go past the following;

class blahholder_Controller extends Page_Controller
{
....junk..... and BANG....
$form = new Form($this, 'EventSearchForm', $fields, $actions,);

}
}

What am I missing? It is making me think, custom form is not possible in Page holder page. If I comment that line above which creates the form, then everything runs and my site is back. Any suggestions are welcome.

Avatar
SaturnJ

Community Member, 4 Posts

25 November 2013 at 1:04am

Please ignore the above post :), I found the spare , in the command.