On 8 Jan 2009, at 09:26, Bart McLeod wrote:

You can of course have a base custom controller, but you do not need to.

Depending on what you need exactly you can use either an action helper in the init method or a plugin or both a plugin and an action helper.

public function init(){
    $this->_helper->myInit(); //instead of your six lines of code
}


Actually, if you have a My_Controller_Action::init(), you don't need to define and init() at all in the child classes, whereas if you use a helper, you do need to define the init() in the controllers where you need the myInit().

Regards,

Rob...

Reply via email to