Jump to:

1505 Posts in 474 Topics by 460 members

Form Questions

SilverStripe Forums » Form Questions » Setting Params in HTTPRequest

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba

Page: 1
Go to End
Author Topic: 976 Views
  • stefant42
    Avatar
    Community Member
    12 Posts

    Setting Params in HTTPRequest Link to this post

    Hi.

    I want to set a param during runtime to get the Value in an other function.

    For Example :

    $id = $this->request->param('ID');
    if(empty($id))
    {
    $this->request->setParam('ID',123);
    }

    But an setParam Method dont exists. My Question is, how can i set Param in the HTTPRequest Object. I want to call $this->request in my Page_Controller.

    Best Regards,

    Stefan

    976 Views
Page: 1
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.