ok, understand far laravel (4.2) have file app/routes.php
has route declared follows:
route::get('/hello/{name}', 'pagecontroller@getpage');
which in turn evaluated other declarations 1 matching given url. , there, in illuminate\routing\controller
have function:
/** * execute action on controller. * * @param string $method * @param array $parameters * @return \symfony\component\httpfoundation\response */ public function callaction($method, $parameters) { //currently $parameters array('name'=>'john') example.. //i going manually add one! $parameters['extra_value']='mx'; $this->setuplayout(); //blank function in laravel 4.2 $response = call_user_func_array(array($this, $method), $parameters); .. etc ..
my question is, how access variable $name
inside blade file? same $extra_value
? , extra_value
"same" name
value passed url?
Comments
Post a Comment