display() protected method

模板显示 调用内置的模板引擎显示方法
protected display ( string $templateFile = '', string $charset = 'utf-8', string $contentType = 'text/html' ) : voi
$templateFile string 指定要调用的模板文件 默认为空 由系统自动定位模板文件
$charset string 输出编码
$contentType string 输出类
return voi
Esempio n. 1
0
 /**
 +----------------------------------------------------------
 * 模板显示
 * 重写父类display方法
 +----------------------------------------------------------
 * @access protected
 +----------------------------------------------------------
 * @param string $templateFile 指定要调用的模板文件
 * 默认为空 由系统自动定位模板文件
 * @param string $charset 输出编码
 * @param string $contentType 输出类型
 +----------------------------------------------------------
 * @return void
 +----------------------------------------------------------
 */
 protected function display($templateFile = '', $charset = '', $contentType = 'text/html')
 {
     if ($this->_CFG['open_gzip'] && extension_loaded('zlib') && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
         ini_set('zlib.output_compression', 'On');
         ini_set('zlib.output_compression_level', 3);
         ob_start('ob_gzhandler');
         parent::display($templateFile, $charset, $contentType);
         ob_end_flush();
     } else {
         parent::display($templateFile, $charset, $contentType);
     }
 }
 public function display($templateFile = '', $charset = 'utf-8', $contentType = 'text/html')
 {
     $this->assign('systemdata_list', $this->systemdata_list);
     $this->assign('systemdata_key', $this->systemdata_key);
     $this->assign('opt', $this->opt);
     //分类列表选项
     $this->assign('onsubmit', $this->onsubmit);
     $this->assign('onload', $this->onload);
     //数据保存动作提交的地址
     $this->assign('savePostUrl', $this->savePostUrl);
     $this->assign('pageKeyList', $this->pageKeyList);
     $this->assign('pageKey', $this->pageKey);
     $this->assign('notEmpty', $this->notEmpty);
     // 页面标题
     $this->pageTitle[ACTION_NAME] && $this->assign('pageTitle', $this->pageTitle[ACTION_NAME]);
     // 页面标题
     $this->assign('pageTab', $this->pageTab);
     $this->assign('submitAlias', $this->submitAlias);
     parent::display($templateFile, $charset, $contentType);
 }
Esempio n. 3
0
 protected function display($templateFile = '', $title = '', $charset = '', $contentType = '')
 {
     $this->loadHeader($title);
     parent::display($templateFile, $charset, $contentType);
 }
Esempio n. 4
0
 /**
 +----------------------------------------------------------
 * 模板显示
 * 只支持PHP模板
 +----------------------------------------------------------
 * @access protected
 +----------------------------------------------------------
 * @param string $templateFile 指定要调用的模板文件
 * 默认为空 由系统自动定位模板文件
 * @param string $charset 输出编码
 * @param string $contentType 输出类型
 +----------------------------------------------------------
 * @return void
 +----------------------------------------------------------
 */
 protected function dsp($templateFile = '', $charset = '', $contentType = 'text/html')
 {
     parent::display($templateFile, $charset, $contentType);
 }
 protected function display($templateFile = '', $charset = '', $contentType = '', $content = '', $prefix = '')
 {
     $this->include_fetch();
     parent::display($templateFile, $charset, $contentType, $content, $prefix);
 }