hook on request dispatch, mailer refactored, #11
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@105 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -20,6 +20,12 @@ class PageController
|
||||
protected function init() {}
|
||||
|
||||
/**
|
||||
* Действия после разбора роута.
|
||||
*
|
||||
*/
|
||||
protected function onDispatch() {}
|
||||
|
||||
/**
|
||||
* Вывод в браузер всего сайта.
|
||||
*
|
||||
*/
|
||||
@ -29,6 +35,7 @@ class PageController
|
||||
$this->init();
|
||||
try{
|
||||
$this->route = Load::router()->proccess(MJ_PATH);
|
||||
$this->onDispatch();
|
||||
$action = new $this->route->action;
|
||||
$decorator = new $this->route->decorator;
|
||||
return $decorator->display($action);
|
||||
|
Reference in New Issue
Block a user