This worked for me, I was able to load the partial with a var as the controller@method.
I had to have a route using the controller@method though or it failed
- in Routes.php
Route::get('/show', array('as' => 'home1', 'uses' => 'HomeController@showTest'));
- in HomeController
public function showWelcome()
{
$addNewAction = 'HomeController@showTest';
return \View::make('hello')->with( 'addNewAction' , $addNewAction );
}
using a your partial code passing the 'HomeController@showTest' and it worked.
Though it might be better to look at the url helper , to generate a route link in the template - http://laravel.com/docs/4.2/helpers#urls
Hope that helps
Thanks for the response.
A composer update has fixed it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community