sonata-project / SonataNewsBundle

[Abandoned] Symfony SonataNewsBundle
https://docs.sonata-project.org/projects/SonataNewsBundle
MIT License
151 stars 131 forks source link

No route found for "GET /admin/" #34

Closed ibasaw closed 12 years ago

ibasaw commented 12 years ago

Hi

It 's installed but when i log in as admin, got redirecttion to /admin and got this error:

No route found for "GET /admin/"

I don't understand...

Here my routing.yml

homepage: pattern: / defaults: { _controller: SonataPageBundle:Page:catchAll }

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: /change-password

gallery: resource: '@SonataMediaBundle/Resources/config/routing/gallery.xml' prefix: /media/gallery

media: resource: '@SonataMediaBundle/Resources/config/routing/media.xml' prefix: /media

blog: resource: '@SonataNewsBundle/Resources/config/routing/news.xml' prefix: /blog

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

_sonata_admin: resource: . type: sonata_admin prefix: /admin

soanata_user: resource: '@SonataUserBundle/Resources/config/routing/admin_security.xml' prefix: /admin

thanks for your help Bye

rande commented 12 years ago

try /admin/dashboard

On Dec 6, 2011, at 5:47 PM, zuckbin wrote:

Hi

It 's installed but when i log in as admin, got redirecttion to /admin and got this error:

No route found for "GET /admin/"

I don't understand...

Here my routing.yml

Internal routing configuration to handle ESI

_internal:

resource: "@FrameworkBundle/Resources/config/routing/internal.xml"

prefix: /_internal

homepage: pattern: / defaults: { _controller: SonataPageBundle:Page:catchAll }

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: /change-password

gallery: resource: '@SonataMediaBundle/Resources/config/routing/gallery.xml' prefix: /media/gallery

media: resource: '@SonataMediaBundle/Resources/config/routing/media.xml' prefix: /media

blog: resource: '@SonataNewsBundle/Resources/config/routing/news.xml' prefix: /blog

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

_sonata_admin: resource: . type: sonata_admin prefix: /admin

soanata_user: resource: '@SonataUserBundle/Resources/config/routing/admin_security.xml' prefix: /admin

thanks for your help Bye


Reply to this email directly or view it on GitHub: https://github.com/sonata-project/SonataNewsBundle/issues/34

ibasaw commented 12 years ago

ok, it works...noob inside...

Thanks

lopsided commented 12 years ago

I had this problem, I added:

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

to the routing so the dashboard is shown on the root admin page

66Ton99 commented 11 years ago

@lopsided thanks a lot

todstoychev commented 10 years ago

There is always problems installing the Sonata bundles.