/** * 构造 * */ protected function __construct() { $this->_exception = Exceptions::getInstance(); $this->_exception->throwExceptions(SHOW_ERROR); $this->_params = Params::getInstance(); $this->getRouter(); }
/** * 构造 * * @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(); } }