symfony - Symfony2 CRUD Listview of Users Not Working -


i created entity users using reverse engineering , tried create controller , view entity using following command:-

$ php app/console generate:doctrine:crud --entity=acmedemobundle:user --format=annotation 

it did ask me contain "write" action, configuration format , prefix. went , 2 scripts generated under controller , views. when call below url view list page of users error:-

http://localhost/symfony/web/users 

error

no route found "get /users" 

does mean once generate crud, not add route entity in routing.yml or missing something?

you need import annoted route in routing.yml :

user: resource: "@acmedemobundle/controller/usercontroller.php" type:     annotation 

then php app/console router:debug check routes available.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -