简体   繁体   English

Laravel 4-控制器ReflectionException类/不存在

[英]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. 尝试加载页面时,出现错误,即ReflectionException…\\ vendor \\ laravel \\ framework \\ src \\ Illuminate \\ Container \\ Container.php485,可以对导致此错误的原因有一些了解。

routes.php routes.php

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

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

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

可能是您的控制器名称:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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