diff --git a/classes/PageController.class.php b/classes/PageController.class.php index e93d1d1..6dda0bd 100644 --- a/classes/PageController.class.php +++ b/classes/PageController.class.php @@ -10,8 +10,14 @@ * @version SVN: $Id$ * @filesource $URL$ */ -final class PageController +class PageController { + + /** + * Действия на инициализацию. + * + */ + protected function init() {} /** * Вывод в браузер всего сайта. @@ -20,6 +26,7 @@ final class PageController public function display() { try { + $this->init(); try{ $this->route = Load::router()->proccess(MJ_PATH); $action = new $this->route->action;