Controller method not found - laravel 4(找不到控制器方法 - laravel 4)
问题描述
我有这个消息抱怨试图运行任何控制器
<块引用>SymfonyComponentHttpKernelExceptionNotFoundHttpException
找不到控制器方法.
我的路线文件中有此代码
我试图访问 localhost:8000/users/login
或任何控制器中的任何方法出现这条消息
尝试改变路由注册的顺序
I have this message whine trying to run any controller
Symfony Component HttpKernel Exception NotFoundHttpException
Controller method not found.
I have this Code in my Route file
and this code in my Controller
Whine I run this Command
+--------+------------------------------------------------------------+------+-------------------------------+----------------+---------------+ | Domain | URI | Name | Action | Before Filters | After Filters | +--------+------------------------------------------------------------+------+-------------------------------+----------------+---------------+ | | GET index/{one?}/{two?}/{three?}/{four?}/{five?} | | HomeController@getIndex | | | | | GET / | | HomeController@getIndex | | | | | GET {_missing} | | HomeController@missingMethod | | | | | GET users/index/{one?}/{two?}/{three?}/{four?}/{five?} | | UsersController@getIndex | | | | | GET users | | UsersController@getIndex | | | | | GET users/register/{one?}/{two?}/{three?}/{four?}/{five?} | | UsersController@getRegister | | | | | POST users/create/{one?}/{two?}/{three?}/{four?}/{five?} | | UsersController@postCreate | | | | | GET users/login/{one?}/{two?}/{three?}/{four?}/{five?} | | UsersController@getLogin | | | | | POST users/signin/{one?}/{two?}/{three?}/{four?}/{five?} | | UsersController@postSignin | | | | | GET users/dashboard/{one?}/{two?}/{three?}/{four?}/{five?} | | UsersController@getDashboard | | | | | GET users/logout/{one?}/{two?}/{three?}/{four?}/{five?} | | UsersController@getLogout | | | | | GET users/{_missing} | | UsersController@missingMethod | | | +--------+------------------------------------------------------------+------+-------------------------------+----------------+---------------+
whine i trying to access to localhost:8000/users/login
or any method in any controller
this message appear
Try to change order of route registration
这篇关于找不到控制器方法 - laravel 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!