配置文件调整

控制器类的ajaxReturn方法调整
This commit is contained in:
thinkphp
2015-02-23 15:38:12 +08:00
parent 1a4a102b49
commit b8344fa91a
8 changed files with 78 additions and 65 deletions

View File

@@ -19,7 +19,7 @@ class Simple {
protected $options = [
'prefix' => '',
'temp' => '',
'path' => '',
];
/**
@@ -30,7 +30,7 @@ class Simple {
if(!empty($options)) {
$this->options = array_merge($this->options,$options);
}
if(substr($this->options['temp'], -1) != '/') $this->options['temp'] .= '/';
if(substr($this->options['path'], -1) != '/') $this->options['path'] .= '/';
}
/**
@@ -40,7 +40,7 @@ class Simple {
* @return string
*/
private function filename($name) {
return $this->options['temp'].$this->options['prefix'].md5($name).'.php';
return $this->options['path'].$this->options['prefix'].md5($name).'.php';
}
/**