fuelphp HMVC pass in some data

At first I have some problem with fuel HMVC Request behaviour. Problem is with passing data to HMVC controller method.
Fuelphp documentation has mention about pass in some data, however, did not mentioned about pass in big array:

http://fuelphp.com/docs/general/hmvc.html

I found that it is pretty easy if you has a big array to pass to controller, same method as mentioned and straight:

$data = array("some big array inside");
\Request::forge('controller/process', false)->execute(array('data'=>$data));

function process($data){
	print_r($data);die();
}
Output: "you big array"

By Keenlio, March 7, 2014

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


× 5 = forty

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>