symfony 2 No route found for “GET /”

后端 未结 7 1223
[愿得一人]
[愿得一人] 2020-12-17 09:54

Symfony2 returns No route found for \"GET /\" when I try to run http://localhost/app_dev.php, but this url works: http://localhost/app_dev.php/hello/Symfony. I removed AcmeD

相关标签:
7条回答
  • 2020-12-17 10:25

    I have also tried that error , I got it right by just adding /hello/any name because it is path that there must be an hello/name

    example : instead of just putting http://localhost/app_dev.php

    put it like this way http://localhost/name_of_your_project/web/app_dev.php/hello/ai

    it will display Hello Ai . I hope I answer your question.

    0 讨论(0)
提交回复
热议问题