Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Forms in a Custom Controller

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

Page: 1 2
Go to End
Author Topic: 2638 Views
  • Willr
    Forum Moderator
    5508 Posts

    Re: Forms in a Custom Controller Link to this post

    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.

  • tbarho
    Community Member
    41 Posts

    Re: Forms in a Custom Controller Link to this post

    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!

Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.