/** * 模板显示 * @param type $templateFile 指定要调用的模板文件 * @param type $charset 输出编码 * @param type $contentType 输出类型 * @param string $content 输出内容 * 此方法作用在于实现后台模板直接存放在各自项目目录下。例如Admin项目的后台模板,直接存放在Admin/Tpl/目录下 */ public function display($templateFile = '', $charset = '', $contentType = '', $content = '') { parent::display($templateFile, $charset, $contentType, $content); }
/** * 加载模板和页面输出 可以返回输出内容 * @access public * @param string $templateFile 模板文件名 * @param string $charset 模板输出字符集 * @param string $contentType 输出类型 * @param string $content 模板输出内容 * @return mixed */ public function display($templateFile = '', $charset = '', $contentType = '', $content = '') { parent::display($this->parseTemplateFile($templateFile), $charset, $contentType); }
/** * 加载模板和页面输出 可以返回输出内容 * @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); }