Author: fabien
Date: 2010-03-29 11:06:15 +0200 (Mon, 29 Mar 2010)
New Revision: 28846
Modified:
doc/branches/1.4/reference/en/06-Admin-Generator.markdown
doc/branches/1.4/reference/en/10-Routing.markdown
Log:
[doc] [1.4] added an example of object_actions usage for routing/admin gen
(closes #7836)
Modified: doc/branches/1.4/reference/en/06-Admin-Generator.markdown
===================================================================
--- doc/branches/1.4/reference/en/06-Admin-Generator.markdown 2010-03-29
08:51:42 UTC (rev 28845)
+++ doc/branches/1.4/reference/en/06-Admin-Generator.markdown 2010-03-29
09:06:15 UTC (rev 28846)
@@ -560,8 +560,12 @@
*Default value*: `{ _edit: ~, _delete: ~ }`
The `object_actions` option defines the list of actions that can be executed
-on each object of the list.
+on each object of the list. The list of actions is an associative array which
+keys are the route names and values an array of methods:
+ [yml]
+ object_actions: { publish: get, publishBis: [get, post] }
+
If you don't define an `action`, the admin generator will look for a method
named after the camel-cased name prefixed by `executeList`.
Modified: doc/branches/1.4/reference/en/10-Routing.markdown
===================================================================
--- doc/branches/1.4/reference/en/10-Routing.markdown 2010-03-29 08:51:42 UTC
(rev 28845)
+++ doc/branches/1.4/reference/en/10-Routing.markdown 2010-03-29 09:06:15 UTC
(rev 28846)
@@ -359,7 +359,7 @@
[yml]
articles:
options:
- collection_actions: { filter: post }
+ collection_actions: { filter: post, filterBis: [post, get] }
# ...
### ~`object_actions`~
@@ -373,7 +373,7 @@
[yml]
articles:
options:
- object_actions: { publish: put }
+ object_actions: { publish: put, publishBis: [post, put] }
# ...
~`sfPropelRouteCollection`~
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.