コード例 #1
0
ファイル: BaseController.php プロジェクト: solve/solve
 public function __construct()
 {
     $this->view = DC::getView();
     $this->router = DC::getRouter();
     $this->route = DC::getApplication()->getRoute();
     $this->request = $this->router->getCurrentRequest();
 }
コード例 #2
0
ファイル: Application.php プロジェクト: solve/solve
 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();
 }