示例#1
0
文件: Responder.php 项目: hejxing/jt
 /**
  * 输出HTML
  */
 protected static function html()
 {
     \header('Content-type: text/html; charset=' . \Config::CHARSET);
     $tpl = new Template();
     foreach (\Config::TPL_PLUGINS as $name => $class) {
         $tpl->assignGlobal($name, new $class());
     }
     return $tpl->render(\Config::TPL_PATH_ROOT . Controller::current()->getTemplate(), Action::getDataStore());
 }
示例#2
0
文件: Action.php 项目: hejxing/jt
 /**
  * 不输出内容
  */
 public function quiet()
 {
     Controller::current()->quiet();
 }