On 8/19/10 8:51 AM, [email protected] wrote:
Hello,
what about "initializing" your custom controller class.
Is it suitable to overrite the __constructor of the inherited class
Symfony\Framework\FoundationBundle\Controller, and there to call the
parent constructor?
You can inherit the constructor, but you cannot add more arguments (they
won't be filled by the framework). But as the argument is the container,
everything you need should probably be stored in the Container already.
Are there similar to the Zend Framework init(), preDispatch() and
postDispatch methods in a controller class which are called by the
dispatcher, if existant?
Nope.
The current implementation of the Controllers will probably still
change. I want to be able to remove the need to extend a base Controller
class. If you have a look at the current Controller base class, you will
see that there is nothing more than proxy methods.
Fabien
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" 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-users?hl=en