Jump to:

1999 Posts in 1408 Topics by 613 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: 2570 Views
  • Willr
    Avatar
    Forum Moderator
    5482 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
    Avatar
    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!

    2570 Views
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.