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 +}