Hi,

Normally, the command line adds the bundle routing definition for you in the
main routing.yml file. But there is a bug in the Symfony2 SE RC4, which is
fixed in the yet to come SE RC5.

Cheers,

-- 
Hugo HAMON
Responsable Pôle Formations
eXTREME SENSIO /// SENSIO LABS
hugo.ha...@sensio.com
01 40 99 82 11
92-98 boulevard Victor Hugo
Entrée A2/A3 - 92 115 Clichy Cedex - www.extreme-sensio.com
Facebook : http://bit.ly/extremesensio
<blocked::blocked::http://bit.ly/extremesensio>
Twitter : http://bit.ly/extreme_sensio
<blocked::http://bit.ly/extreme_sensio>

De :  Jerome Aubry <jerome.au...@gmail.com>
Répondre à :  <symfony-devs@googlegroups.com>
Date :  Fri, 22 Jul 2011 12:05:24 +0200
À :  <symfony-devs@googlegroups.com>
Objet :  [symfony-devs] routing for generated entity crud

Hello,
After more than 1 year on sf1.4, I am finaly testing sf2 !
It has been completely redesigned ! Waow, I have to get used to...

In my first test, I generated an Entity : Admin/Client
Then, I generated the CRUD with the automatic routing update.

I finaly have a /src/company/board/Resources/config/routing/admin_client.yml
(with all the actions).
Before that, I had a /src/company/board/Resources/config/routing.yml for the
default page (hello).
When I display the page /admin_client in browser, i get an error "No route
found for "GET /admin_client"
In 
\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\EventListener\RouterListe
ner.php line 88 

Everything works fine if I add :
admin_client:
  resource: "@Company/BoardBundle/Resources/config/routing/admin_client.yml"
  prefix:   /admin_client

Do I have to add this line manually each time or maybe the generator bypass
it ?
Thx
Jerome

-- 
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 developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en


-- 
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 developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

<<inline: AA7DCECA-1939-4A84-8E9D-D9BDEADA79FF[7].png>>

Reply via email to