Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
how to send parameter in hmvc
  • i am trying to send parameter in to other controller , as given below
    $widget = Request::forge('admin/Superadmin/home/addadminfunct', false)->execute(array('test'=>'apple'));
               $view =$widget;
    but i have no idea how to get the given parameter at other side of the controller i.e over here it is 
    controller- home and function- addadminfunct ,
    how to hetch over here as ???

  • For parameters in the URI. it works the same as for requests from the browser: you access them via the method arguments.

    For parameters passed through execute(), you access them in the controller method via $this->param().

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion