简体   繁体   中英

Laravel 4 - controller ReflectionException Class / does not exist

When attempting to load the page, I'm getting the error that the ReflectionException …\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php485, could use some insight on what is causing this error.

routes.php

Route::get('contact', 'Pages@contact');

laravel\\app\\controllers\\PagesController.php

<?php
class PagesController extends BaseController {
public function contact()
    {
        return View::make('hello');
    }
}

可能是您的控制器名称:

 Route::get('contact', 'PagesController@contact');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM