我想要做的是设置它,以便用户可以去“/项目/索引”(“/”是路线的C),但我不太确定如何做到这一点在laravel?Laravel子目录视图
我目前有:
路由:
Route::get('project.index', array('as' => 'project/index', 'uses' => '[email protected]'));
另外:
View::addLocation('project'); //Project View View::addNamespace('project', 'project');
在我的项目负责人:
public function indexPage()
{
return View::make('index', array('pageTitle' => 'Project Index'));
}
有什么想法?提前致谢。
PS:这是Laravel 4
辉煌!你帮了我很多!先生+1。 – Jarkerwastaken 2015-03-13 20:11:33