I am trying to begin my education of symfony 2 and started with it's tutorial. One of first things I tried was to install symfony 2 and configure it.
When I try to access http://127.0.0.1:8000/, I am getting an incomplete site with the following error:
ERROR - Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/spectator/webprojects/cls/app/cache/dev/classes.php line 2059
Things I have tried so far:
- clearing cache (
php app/console cache:clear --env=prod --no-debug
) - recursively changing permissions to folder cls (symfony 2 folder) to
775
and even777
(for diagnostics purposes) - adding "/" route to routing.yml and routing_dev.yml
- reinstalling and
- re-chmod symfony 2.
@Route()
annotation. – Artamielsrc
. This is where your bundles get defined. Inside it you should have your default bundle - as of @2.6 or @2.7 it's calledAppBundle
. Inside is a folderController
where you can find your DefaultController. – Artamiel