我是laravel的新手。我有一個關於生根和意見的問題。我正在學習一個教程。但教程和輸出的輸出結果不一樣。 當我插入這個在地址欄本地主機/ laravel/2nd_project /公/作者,我沒有產生這應該是有一個輸出就像教程控制器和路由不會生成index.php我正在使用laravel 4.1
這裏的index.php文件是控制器/ authors.php
<?php
class Authors_Controller extends Base_Controller{
public $restful = true;
public function get_index(){
return View::make('authors.index');
}
}
應用程序/ routes.php文件
<?php
Route::get('/', function()
{
return View::make('hello');
});
Route::get('authors',array('uses'=>'[email protected]_index'));
的意見/作家/ index.php文件
<h1>Hi User!!</h1>
這是意見/authors/index.php
嗨用戶!
– Kerbs你會得到什麼?您的Laravel安裝是否成功?你見過這個嗎? https://pbs.twimg.com/media/BLYFfmLCAAEHcZL.png –
是的,我已經看到了,它是成功的,實際上我已經遷移並使用模式創建數據庫。 – Kerbs