我想要做的是設置它,以便用戶可以去「/項目/索引」(「/」是路線的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