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

Forms in a Custom Controller


Go to End


10 Posts   5813 Views

Avatar
Willr

Forum Moderator, 5523 Posts

13 January 2010 at 11:20am

Well if you have a $newOrder in your template then it should call the ViewableData template and include the form. If you're trying to access the form directly eg - www.site.com/fastfood/newOrder/ that will fail since your returning a form, rather then a template which has a form. What you might want to do is make a middle man template like site.com/fastfood/order/ then on that order template have your $newOrder var.

Avatar
tbarho

Community Member, 41 Posts

13 January 2010 at 11:29am

Does it matter that I am inheriting from Controller instead of Page_Controller? I still can't seem to get it working, doing what you suggested. Thanks!

Go to Top