Jump to:

2012 Posts in 1438 Topics by 621 members

Form Questions

SilverStripe Forums » Form Questions » Setting Params in HTTPRequest

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

Page: 1
Go to End
Author Topic: 1425 Views
  • stefant42
    Avatar
    Community Member
    14 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

    1425 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.