I am building the environment based on the following tutorial on symfony2.
I am troubled that the welcome page is not displayed.
No route found for "GET /" 404 Not Found - NotFoundHttpException 1
ERROR-Uncaught PHP Exception
route found for "GET /" at
I installed the necessary files such as components, but
Could someone please tell me if there is anything else I have overlooked?
Thank you for your cooperation.php symfony2
Assume Symphony 2.7 LTS. Do you want to go to
http://localhost:8000/app/example and see the Homepage string?
Although not reflected in the Japanese documentation, Symfony 2.7 LTS now recommends setting up projects with the Symphony Installer.
How to set up the Symphony Installer is displayed by clicking the blue text "install the Symphony Installer" on the download page.
Linux and Mac OS X run the following commands:When I introduced my Mac OS X, I didn't use sudo.
The controller used to view /app/example is
src/AppBundle/Controller/DefaultController.php, and the template is
An example of controller practice is the code that appears when you access
/app/foo.For exercises that do not require HTML escape considerations, it is useful to use a Response object as a return value.
If you want to return JSON, return the JsonResponse object.
© 2022 OneMinuteCode. All rights reserved.