configdata = $_view_config['config']; //参数 $this->tpl_engine = LIBS."tpl_engine/".$_view_config['engine'].'.tpl.php'; if(!file_exists($this->tpl_engine)) { exit('error: unable to load the template controller: '.strtolower($_view_config['engine'])); } $this->engine = strtolower($_view_config['engine'])."_tpl"; unset($_view_config,$view_config); } //兼容PHP4操作 function View() { $this->__construct(); } //运行引挈 function run() { include_once($this->tpl_engine); //初始化引挈 $this->tpl = new $this->engine($this->configdata); return $this->tpl; } } ?>