protected function __construct() { $this->_model = Factory::setModel(); $this->_tpl = TPL::getInstance(); $this->_redirect = Redirect::getInstance($this->_tpl); }
public function __construct() { $this->tpl = TPL::getInstance(); $this->model = Factory::setModel(); $this->redirect = Redirect::getInstance($this->tpl); }
protected function __construct() { //实例化smarty,保存在smarty属性中 $this->smarty = Template::getInstance(); $this->model = Factory::setModel(); }