From df781c8eb2f678bfaa00314b899d2b454dd2c151 Mon Sep 17 00:00:00 2001 From: pzinovkin Date: Thu, 27 Aug 2009 14:06:29 +0000 Subject: [PATCH] PageController refactored nakon:ticket:370 git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@104 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/PageController.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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;