예제 #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();
 }