不明白为什么我不断收到此错误:Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException [英] Do not understand why I keep getting this error: Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException

查看:374
本文介绍了不明白为什么我不断收到此错误:Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个路由错误,但是我在路由中找不到任何错误.

I know this is a routing error but I can't find any errors in my routes.

  // comments
  Route::get('/comments', 'CommentsController@index');

这是控制器.

 /**
 * Display a listing of the resource.
 * GET /comments
 *
 * @return Response
 */
public function index()
{
    return View::make('comments.create');
}

先谢谢您.对某人来说可能很容易获得15分.

Thank you in advance. It is probably an easy 15 points to someone.

推荐答案

这条路线上似乎有一个auth过滤器.如果未设置AuthController或缺少login方法,则当filter.php中的auth过滤器尝试重定向到登录页面时,您将获得NotFoundHttpException.

It looks like you have an auth filter on this route. If your AuthController is not set up, or is missing the login method, you will get a NotFoundHttpException when the auth filter in filter.php tries to redirect to your login page.

这篇关于不明白为什么我不断收到此错误:Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆