lib: Add method `ActionController::prepareInit()'
As it should not be required for controllers to call the parent's init() method, base controllers should use prepareInit() in order to prepare the controller initialization.
This commit is contained in:
parent
8bf66425d1
commit
f8edb4f220
|
@ -91,9 +91,22 @@ class ActionController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->tabs = new Tabs();
|
$this->view->tabs = new Tabs();
|
||||||
|
$this->prepareInit();
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare controller initialization
|
||||||
|
*
|
||||||
|
* As it should not be required for controllers to call the parent's init() method, base controllers should use
|
||||||
|
* prepareInit() in order to prepare the controller initialization.
|
||||||
|
*
|
||||||
|
* @see \Zend_Controller_Action()::init() For the controller initialization method.
|
||||||
|
*/
|
||||||
|
protected function prepareInit()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public function Config($file = null)
|
public function Config($file = null)
|
||||||
{
|
{
|
||||||
if ($file === null) {
|
if ($file === null) {
|
||||||
|
|
Loading…
Reference in New Issue