Oops! An Error Occurred
The server returned a "404 Not Found".
Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
看了下报错的
[2014-10-19 12:16:26] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at D:\server\www\symfony\app\cache\prod\classes.php line 1992 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException: No route found for \"GET /\" at D:\\server\\www\\symfony\\app\\cache\\prod\\classes.php:1992, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException: at D:\\server\\www\\symfony\\app\\cache\\prod\\appProdUrlMatcher.php:32)"} []
请朋友们指点迷津!!!
4 个解决方案
#1
诶,感觉csdn论坛没落了,问的几个问题,都没人回答,尽是些聊天打屁的帖子
#2
楼主 虽然我也是新手,但是可以从报错哪里看出来 No route found for \"GET /\ 你设置一个根路由就好了!
#3
No route found for \"GET
#4
在routing.yml新增一个配置
index:
path: /
defaults: { _controller: AppBundle:Default:index }
index:
path: /
defaults: { _controller: AppBundle:Default:index }
#1
诶,感觉csdn论坛没落了,问的几个问题,都没人回答,尽是些聊天打屁的帖子
#2
楼主 虽然我也是新手,但是可以从报错哪里看出来 No route found for \"GET /\ 你设置一个根路由就好了!
#3
No route found for \"GET
#4
在routing.yml新增一个配置
index:
path: /
defaults: { _controller: AppBundle:Default:index }
index:
path: /
defaults: { _controller: AppBundle:Default:index }