route = Load::router()->proccess(MJ_PATH); $action = new $this->route->action; $decorator = new $this->route->decorator; return $decorator->display($action); } catch (MJException $e) { return $e->terminate(); } catch (Exception $e) { $decorator_name = DEFAULT_DECORATOR; $action_name = DEFAULT_ACTION; $decorator = new $decorator_name; return $decorator->display(new $action_name($e->getMessage())); } } } ?>