Laravel控制器未定义的变量:名称

时间:2014-01-16 01:39:51

标签: php laravel

当我尝试访问控制器时,我收到错误Undefined variable: names

Route.php:

Route::get('article', 'ArticleController@showIndex');

ArticleController.php:

class ArticleController extends BaseController{

    public function showIndex(){
        return View::make('hello');
    }

    public function showSingle($articleId){
        return View::make('single');
    }

}

URL:

http://localhost:8080/learning-laravel/article

laravel相当新,所以我不完全确定我错过了什么。

0 个答案:

没有答案