Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复修饰符 #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions application/Common/Controller/HomebaseController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}
Expand All @@ -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);
Expand Down Expand Up @@ -270,4 +270,4 @@ private function set_action_success_error_tpl(){
}


}
}