/** * 输出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()); }
/** * 不输出内容 */ public function quiet() { Controller::current()->quiet(); }