路线:
Route::controller('account/pages','PagesController' );
Route::controller('account','AccountController' );
Route::get('/', function() {
return Redirect::to('account');
});
页面控制器:
public function getGerente()
{
return Redirect::action('GerenteController@getIndex');
}
Gerente控制器:
public function getIndex()
{
return View::make('account/gerente/index');
}
看法:
<a href="{{ URL::action('PagesController@getGerente') }}">Gerente</a>
但是当点击时,返回“Unknown action [GerenteController@getIndex]”,我该如何解决这个问题?