symfony2admingenerator/AdmingeneratorGeneratorBundle — pull request #373 by sescandell (2013-03-05 12:00:25+00:00)
Title: [Features] Add possibility to give additional parameters before rendering a view

[Feature] Add possibility to give additional parameters before rendering a view
[FIX] Don't use bindRequest anymore (deprecated function)

Sometimes we need to add some parameters before rendering a view. Until this PR we need to copy past the generated code from index or update or.... actions and add our parameters.
Now, we can do it just by overriding a protected function from the BaseController called getAdditionalRenderParameters() :
> in list controllers it doesn't take any parameter
> in edit / new controllers it take the ModelClass Object as first parameter
Return must be an array()

A default implementation is available and simply return an array() (no BC).

Is some documentation for that needed ?