/** * 加载模板和页面输出 可以返回输出内容 * @access public * @param string $templateFile 模板文件名 * @param string $charset 模板输出字符集 * @param string $contentType 输出类型 * @param string $content 模板输出内容 * @return mixed */ public function display($templateFile = '', $charset = '', $contentType = '', $content = '', $prefix = '') { //echo $this->parseTemplate($templateFile); parent::display($this->parseTemplate($templateFile), $charset, $contentType); }
function _initialize() { parent::_initialize(); $this->guestbook_model = D("Guestbook"); }