<?php include 'smarty/Smarty.class.php'; include 'index/common.func.php'; set_smarty(); load_lang_pack(array($global['channel'])); initial('index'); $smarty->display('info.php'); //新秀
public function __construct() { $this->tpl = new Smarty(); $smarty_config = (include WEB_ROOT . "configs/smarty.config.php"); set_smarty($this->tpl, $smarty_config); }