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
Ben

On 24.05.2011 09:31, Ben Bieker wrote:
> Hi,
> 
> thanks a lot for your answers! As it seems, I have to look for more
> bundles before asking questions here. I found the ParamConverter
> Annotations here:
> http://bundles.symfony-reloaded.org/frameworkextrabundle/annotations/converters.html
> 
> I will check http://symfony2bundles.org/ if I find more cool things.
> 
> Thanks again!
> Ben
> 
> On 23.05.2011 22:08, dustin10 wrote:
>> It is provided in the FrameworkExtraBundle. Look at the ParamConverter
>> annotation.
>>
>> Dustin
>>
>> -- 
>> 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
> 

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

Reply via email to