Hi, According to your 'pattern:' line, the correct url is /hello/Fabien (without the .xml).
On 6 jan, 00:58, Yan <[email protected]> wrote: > Following the guide, > I am using sandbox pr4 > in routing.yaml: > > hello: > pattern: /hello/:name > defaults: { _controller: HelloBundle:Hello:index, _format: xml} > > It fatches the index.xml.twig > > Set the routing.yaml to > > hello: > pattern: /hello/:name > defaults: { _controller: HelloBundle:Hello:index, _format: html} > requirements: { _format: (html|xml|json) } > > http://localhost/sandbox/web/app_dev.php/hello/Fabien.xml > Returns: > Unable to find the controller. > 404 Not Found - NotFoundHttpException > > In the log, find this errors: > ERR No route found for /hello/Fabien.xml > ERR Unable to look for the controller as the "_controller" parameter > is missing > ERR Symfony\Component\HttpKernel\Exception\NotFoundHttpException: > Unable to find the controller. (uncaught exception) > > Thanks for help. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
