[symfony-users] Re: HelloBundle _format: Unable to find the controller

2011-01-09 Thread Yan
Thank you. Solved. On Jan 7, 9:47 pm, mwsaz wrote: > Hi again, > > You need to add the format bit in your 'pattern' line : > > hello: >     pattern:  /hello/:name.:_format >     defaults: >         _controller: HelloBundle:Hello:index >     requirements: >         _format: html|xml|json > > On Ja

[symfony-users] Re: HelloBundle _format: Unable to find the controller

2011-01-07 Thread mwsaz
Hi again, You need to add the format bit in your 'pattern' line : hello: pattern: /hello/:name.:_format defaults: _controller: HelloBundle:Hello:index requirements: _format: html|xml|json On Jan 6, 2:43 pm, Yan wrote: > Thanks for your reply. > > ../hello/Fabien, wi

[symfony-users] Re: HelloBundle _format: Unable to find the controller

2011-01-06 Thread Yan
Thanks for your reply. ../hello/Fabien, will fetch the default index.twig Hello: Fabien! ../hello/Fabien.xml, will fetch index.xml.twig The format selector seems not work. On Jan 6, 9:03 pm, mwsaz wrote: > Hi, > > According to your 'pattern:' line, the correct url is /hello/Fabien > (without t

[symfony-users] Re: HelloBundle _format: Unable to find the controller

2011-01-06 Thread mwsaz
Hi, According to your 'pattern:' line, the correct url is /hello/Fabien (without the .xml). On 6 jan, 00:58, Yan wrote: > Following the guide, > I am using sandbox pr4 > in routing.yaml: > > hello: >     pattern:  /hello/:name >     defaults: { _controller: HelloBundle:Hello:index, _format: xml}