예제 #1
0
 /**
  * 将\Smarty编译解析后的内容直接输出显示
  * @param $template
  * @param array $data
  */
 public function display($template, $data = array())
 {
     $data = array_merge($this->defaultVariables, $data);
     $this->smartyInstance->assign($data);
     $this->smartyInstance->display($template);
 }