public function __construct() { $this->view = DC::getView(); $this->router = DC::getRouter(); $this->route = DC::getApplication()->getRoute(); $this->request = $this->router->getCurrentRequest(); }
public function process() { if (ControllerService::isControllerExists('ApplicationController')) { ControllerService::getController('ApplicationController')->_preAction(); } ControllerService::processControllerAction($this->_route->getControllerName(), $this->_route->getActionName()); if (ControllerService::isControllerExists('ApplicationController')) { ControllerService::getController('ApplicationController')->_postAction(); } DC::getView()->render(); }