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