Symfony2 impersonation route parameters missing
Posted
by
jaPa
on Stack Overflow
See other posts from Stack Overflow
or by jaPa
Published on 2013-11-12T14:20:45Z
Indexed on
2013/11/13
9:54 UTC
Read the original article
Hit count: 384
symfony2
|impersonation
I receive an error when I change pages if I am impersonated as another user in Symfony2. It only happens when the route has additional parameters. There is no sign of route generation at the pointed line number.
Controller action
/**
* @Route("/member/{id}", name="member_page")
* @Template()
*/
public function memberAction($id)
Error
An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("slug") to generate a URL for route "member_page".") in members.html.twig at line 2.
© Stack Overflow or respective owner