ActionController: move moduleInit to Module controller
This commit is contained in:
parent
2cd25b7376
commit
de19745eb2
|
@ -121,7 +121,6 @@ class ActionController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->tabs = new Tabs();
|
$this->view->tabs = new Tabs();
|
||||||
$this->moduleInit();
|
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,10 +170,6 @@ class ActionController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function moduleInit()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function reloadCss()
|
protected function reloadCss()
|
||||||
{
|
{
|
||||||
$this->reloadCss = true;
|
$this->reloadCss = true;
|
||||||
|
|
|
@ -21,6 +21,7 @@ class ModuleActionController extends ActionController
|
||||||
parent::__construct($request, $response, $invokeArgs);
|
parent::__construct($request, $response, $invokeArgs);
|
||||||
$this->moduleName = $request->getModuleName();
|
$this->moduleName = $request->getModuleName();
|
||||||
$this->view->translationDomain = $this->moduleName;
|
$this->view->translationDomain = $this->moduleName;
|
||||||
|
$this->moduleInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Config($file = null)
|
public function Config($file = null)
|
||||||
|
@ -41,4 +42,9 @@ class ModuleActionController extends ActionController
|
||||||
return $this->configs[$file];
|
return $this->configs[$file];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected function moduleInit()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue