PageController refactored nakon🎫370
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@104 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -10,16 +10,23 @@
|
|||||||
* @version SVN: $Id$
|
* @version SVN: $Id$
|
||||||
* @filesource $URL$
|
* @filesource $URL$
|
||||||
*/
|
*/
|
||||||
final class PageController
|
class PageController
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Действия на инициализацию.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected function init() {}
|
||||||
|
|
||||||
|
/**
|
||||||
* Вывод в браузер всего сайта.
|
* Вывод в браузер всего сайта.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function display()
|
public function display()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$this->init();
|
||||||
try{
|
try{
|
||||||
$this->route = Load::router()->proccess(MJ_PATH);
|
$this->route = Load::router()->proccess(MJ_PATH);
|
||||||
$action = new $this->route->action;
|
$action = new $this->route->action;
|
||||||
|
Reference in New Issue
Block a user