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
Post a Comment