Example #1
0
 /**
  * 输出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());
 }