コード例 #1
0
ファイル: App.php プロジェクト: kissthink/MiniFramework
 /**
  * 构造
  * 
  */
 protected function __construct()
 {
     $this->_exception = Exceptions::getInstance();
     $this->_exception->throwExceptions(SHOW_ERROR);
     $this->_params = Params::getInstance();
     $this->getRouter();
 }
コード例 #2
0
ファイル: Action.php プロジェクト: kissthink/MiniFramework
 /**
  * 构造
  * 
  * @param string $controller
  * @param string $action
  * @return Action
  */
 function __construct()
 {
     $this->view = new View();
     $this->params = Params::getInstance();
     if (method_exists($this, '_init')) {
         $this->_init();
     }
 }