Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update Resources/doc/5-automatic-route-generation_single-restful-cont…

…roller.md
  • Loading branch information...
commit 26fdeccdef19c78cc8547fe844dce20653f70f9a 1 parent fc92b76
@cordoval cordoval authored
View
5 Resources/doc/5-automatic-route-generation_single-restful-controller.md
@@ -31,8 +31,9 @@ users:
This will tell Symfony2 to automatically generate proper REST routes from your ``UsersController`` action names.
Notice ``type: rest`` option. It's required so that the RestBundle can find which routes are supported.
-Notice ``name_prefix: my_bundle_`` option. It's useful to prefix the generated controller routes. Take care that
-you can use ``name_prefix`` on an import only when the file is imported itself with the type ``rest``.
+Notice ``name_prefix: <my_bundle_>`` option. It's useful to prefix the generated controller routes to organize
+your several resources paths. Take care that you can use ``name_prefix`` on an import only when the file is
+imported itself with the type ``rest``. You can also set a parent and a regular prefix as well as any other route.
## Define resource actions
Please sign in to comment.
Something went wrong with that request. Please try again.