Le 24/05/2011 15:10, Ben Bieker a écrit :
Hi,
it's me again. I tried the ParamConverter Annotation but so far without
any success.
I always get a 404 NotFound Exception - NO route found for "GET
/show/46" ....
Is this feature still very buggy?
Here is the code i am Using:
/**
* @Route("/show/:id", name="show_quiz")
* @ParamConverter("quiz", class="QuizBundle:Quiz")
* @Template()
*/
public function showAction(Quiz $quiz)
{
return array('quiz' => $quiz);
}
What am I doing wrong? It seems the routing framework cannot parse my
route. If I use a route like "/show/{id}" it will work, but not with the
":id"..
I got a Quiz Entity Class in my /Entity Directory.
Greetings
The syntax for routing placeholders is /{id}/ in Symfony2, not /:id/ so
it is totally normal.
--
Christophe | Stof
--
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en