From f2484e79188909b594d73fe85fdd3aa709a96c3f Mon Sep 17 00:00:00 2001 From: 1c3z Date: Mon, 29 Jul 2019 11:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E9=A5=B0=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/Controller/HomebaseController.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/Common/Controller/HomebaseController.class.php b/application/Common/Controller/HomebaseController.class.php index 48b98a79..9e65a1a7 100644 --- a/application/Common/Controller/HomebaseController.class.php +++ b/application/Common/Controller/HomebaseController.class.php @@ -109,7 +109,7 @@ protected function _send_to_active(){ * @param string $content 模板输出内容 * @return mixed */ - public function display($templateFile = '', $charset = '', $contentType = '', $content = '', $prefix = '') { + protected function display($templateFile = '', $charset = '', $contentType = '', $content = '', $prefix = '') { parent::display($this->parseTemplate($templateFile), $charset, $contentType,$content,$prefix); } @@ -123,7 +123,7 @@ public function display($templateFile = '', $charset = '', $contentType = '', $c * @param string $prefix 模板缓存前缀* * @return string */ - public function fetch($templateFile='',$content='',$prefix=''){ + protected function fetch($templateFile='',$content='',$prefix=''){ $templateFile = empty($content)?$this->parseTemplate($templateFile):''; return parent::fetch($templateFile,$content,$prefix); } @@ -134,7 +134,7 @@ public function fetch($templateFile='',$content='',$prefix=''){ * @param string $template 模板文件规则 * @return string */ - public function parseTemplate($template='') { + protected function parseTemplate($template='') { $tmpl_path=C("SP_TMPL_PATH"); define("SP_TMPL_PATH", $tmpl_path); @@ -270,4 +270,4 @@ private function set_action_success_error_tpl(){ } -} \ No newline at end of file +}