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
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
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
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}