Symfony on windows not found route error
New for PHP and Symfony. Follow the instructions here to set up a simple helloworld project on a Windows 8.1 machine with php version 5.6.0. However, when hitting the web server, I get an error.
No route found for "GET /"
ERROR - Uncaught PHP Exception
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
"No route found for "GET /"" at C:\XXX\app\cache\dev\classes.php line 2061
Gives me a ResourceNotFound exception with the following traceback
in app / cache / dev / appDevUrlMatcher.php on line 135 -
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction', '_route' => 'homepage',);
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}
The instructions seem to be UNIX specific. Any help would be greatly appreciated. Attached is a screenshot of the error:
source to share
The instructions are not specific to Unix. However, some things have changed. It's one thing that the demo was removed from the "Symfony Standard Edition" and moved to a separate application. This means that when you start symfony new ...
(or composer create-project symfony/framework-standard-edition
) you will no longer have routes available.
If you want to see a demo application, use symfony demo
.
source to share