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.
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.
Go to End
- Previous 10 entries
- 1
- Page 22(current)
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
- Previous 10 entries
- 1
- Page 22(current)