php - Unable to generate route value_user_create -


i have problem symfony2-project sonataadmin- , userbundle. installed , configured according both admin- , userbundle-documentations , tried running, seems fine start. can both bundles come out-of-the-box. when try access list of users admin-dashboard (default path /admin/sonata/user/user/list), this:

an exception has been thrown during rendering of template ("unable generate url named route "value_user_create" such route not exist.") in "sonataadminbundle:crud:list.html.twig". 

as described, neither did change default routing informations provided sonata, nor did overwrite controller or anything. according symfony console router:debug route admin_sonata_user_user_create, amoungst other crud-routes, exists (pointing /admin/sonata/user/user/create)

so me seems value in route-name value_user_create not replaced admin_sonata_user-prefix, that's thought , cannot prove it. anyways can't find place fix problem, every , tip might helpful here.

best regards , in advance

edit: sonata user service looks this:

sonata_user:     security_acl: false     class:         user:   application\sonata\userbundle\entity\user         group:  application\sonata\userbundle\entity\group     admin:         user:             class:          repertorium\adminbundle\entity\useradmin             controller:     sonataadminbundle:crud             translation:    sonatauserbundle         group:             class:          sonata\userbundle\admin\entity\groupadmin             controller:     sonataadminbundle:crud             translation:    sonatauserbundle 

after first comment here created own useradmin-class derived default sonata\userbundle\admin\entity\useradmin-class, except sets baseroutename null mentioned. config says i'm using default adminbundle-crud-controller. no override in case or anything. cleared cache, tried again - same error message. tried set literal such "user_admin", same none-effect. weird thing is, other routes seem work fine; can open create user-page, create group , list group-pages.

how service definition looks like? use default crud controller? also, seems have admin::$baseroutename variable overwritten in admin class 'value' instead of null. try setting like:

class useradmin extends admin {      public $baseroutename = null;      // ... } 

does change anything? don't forget try clearing cache.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -