Lukas,

Could there be a type hinting in
https://github.com/FriendsOfSymfony/RestBundle/blob/master/View/View.php#L307
?

Cheers,
Victor

On Apr 28, 4:29 pm, Lukas Kahwe Smith <[email protected]> wrote:
> On 28.04.2011, at 15:47, dbenjamin wrote:
>
> > Hi,
>
> > I try to render a template from a controller throught the view object.
> > Code :http://pastie.org/1843370
>
> > The route is : /test
>
> > It works like a charm when i try to reach /test.json, but no way to render 
> > a template (/test.html), i'm missing something.
>
> > I have the following error :
> > The template does not support the "format" parameter.
>
> > The exception is thrown by the TemplateReference class when the View object 
> > tries to get the format parameters at line 325 : "if (null === 
> > $template->get('format')) ....."
>
> You need to use the 
> Symfony\Bundle\FrameworkBundle\Templating\TemplateReference
>
> regards,
> Lukas Kahwe Smith
> [email protected]

-- 
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 developers" 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-devs?hl=en

Reply via email to