|
@ -20,12 +20,14 @@ final class PageController |
|
|
public function display() |
|
|
public function display() |
|
|
{ |
|
|
{ |
|
|
try { |
|
|
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; |
|
|
$decorator = new $this->route->decorator; |
|
|
$decorator = new $this->route->decorator; |
|
|
return $decorator->display($action); |
|
|
return $decorator->display($action); |
|
|
} catch (MJException $e) { |
|
|
} catch (MJException $e) { |
|
|
return $e->terminate(); |
|
|
return $e->terminate(); |
|
|
|
|
|
} |
|
|
} catch (DynamicPageException $e) { |
|
|
} catch (DynamicPageException $e) { |
|
|
$decorator_name = DEFAULT_DECORATOR; |
|
|
$decorator_name = DEFAULT_DECORATOR; |
|
|
$decorator = new $decorator_name; |
|
|
$decorator = new $decorator_name; |
|
|
xxxxxxxxxx