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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

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

Forms in a Custom Controller

Go to End

10 Posts   4128 Views


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 - 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 then on that order template have your $newOrder var.


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