No route found for "GET /admin/"

1,829 views
Skip to first unread message

Darío González García

unread,
Mar 18, 2013, 2:19:55 PM3/18/13
to sonata...@googlegroups.com
Hello.

Install Admin Sonata in Symfony 2.1.8.

But when I go to the route http:\\Application\app_dev.php\admin. There goes the route.


 No route found for "GET /admin/"

and add

admin_dashboard:
     pattern: / admin
     defaults: {_controller: SonataAdminBundle: Core: dashboard}

and it worked.

but FosUser install and update with composer.

It stopped working.

and again I seem to not find the path.

No route found for "GET /admin/"

I can do.

Thank you.



Cassiano Tartari

unread,
Mar 18, 2013, 2:22:27 PM3/18/13
to sonata-users
Try http:\\Application\app_dev.php\admin\dashboard

And '\' instead of '/' ?

Cassiano Valle Tartari
MSc. Computer Engineer

Tel: +55.48.84474818
Email: fal...@cassianotartari.eng.br
Site: http://www.cassianotartari.eng.br

QR Code





--
You received this message because you are subscribed to the Google Groups "sonata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonata-users...@googlegroups.com.
To post to this group, send email to sonata...@googlegroups.com.
Visit this group at http://groups.google.com/group/sonata-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Michael Hodges

unread,
Jul 5, 2013, 2:51:39 PM7/5/13
to sonata...@googlegroups.com
Posting my routing.yml file in case you find it useful.  Its from my experimental project
based on the newest jobeet tutorial plus FOS plus Sonata, which seems to be what
you've been up to.  Everything is working for me, so you might find what your are looking
for below if it's merely a routing problem.
 - Michael



ens_jobeet:
    resource: "@EnsJobeetBundle/Resources/config/routing.yml"
    prefix:   /
   
fos_user_security:
    resource: "@FOSUserBundle/Resources/config/routing/security.xml"

fos_user_profile:
    resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
    prefix: /profile

fos_user_register:
    resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
    prefix: /register

fos_user_resetting:
    resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
    prefix: /resetting

fos_user_change_password:
    resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
    prefix: /profile

admin:sonata_page_cache:
    resource: '@SonataPageBundle/Resources/config/routing/cache.xml'
    prefix: /
    resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
    prefix: /admin

admin:
    resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
    prefix: /admin

_sonata_admin:
    resource: .
    type: sonata_admin
    prefix: /admin
   
sonata_user:
    resource: '@SonataUserBundle/Resources/config/routing/admin_security.xml'
    prefix: /admin
   
admin_dashboard:
     pattern: /admin
     defaults: {_controller: SonataAdminBundle, Core: dashboard}
   
login:
    pattern:   /login
    defaults:  { _controller: EnsJobeetBundle:Default:login }
   
login_check:
    pattern:   /login_check
   
logout:
    pattern:   /logout
Reply all
Reply to author
Forward
0 new messages