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:
pzinovkin
2009-10-10 20:17:13 +00:00
parent df781c8eb2
commit c7c1c95f49
2 changed files with 25 additions and 20 deletions

View File

@ -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);