Le 15/06/2011 09:24, mrdev a écrit :
Hi,
i'm stuck for a while now on this.
the admin works for my user entity but doesn't with my others entity.
here's the error i get :
[2/2] Twig_Error_Runtime: An exception has been thrown during the
rendering of a template ("Route "admin_mr_start_mrdiploma_create" does
not exist.") in "SonataAdminBundle:Core:dashboard.html.twig" at line
30. -+
[1/2] RouteNotFoundException: Route "admin_mr_start_mrdiploma_create"
does not exist. -
here's my config :
services:
mr.start.admin.user:
class: Mr\StartBundle\Admin\MrUserAdmin
tags:
- { name: sonata.admin, manager_type: orm, group: mr_user,
label: mr_user }
arguments: [null, Mr\StartBundle\Entity\MrUser,
MrStartBundle:MrUserAdmin]
mr.start.admin.diploma:
class: Mr\StartBundle\Admin\MrDiplomaAdmin
tags:
- { name: sonata.admin, manager_type: orm, group:
mr_diploma, label: mr_diploma }
arguments: [null, Mr\StartBundle\Entity\MrDiploma, null]
works for MrUser if i remove the MrDiploma config...
any idea ?
thanks
Benoît
You need to clear your cache when adding a new admin class if you don't
use the latest version of the AdminBundle
--
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