PSR规范调整

This commit is contained in:
thinkphp
2015-10-04 13:05:15 +08:00
parent 1cfb3704c6
commit 27e724bb3c
135 changed files with 9426 additions and 11556 deletions

View File

@@ -10,19 +10,23 @@
// +----------------------------------------------------------------------
namespace think\view\driver;
use think\Template;
class Think {
private $template = null;
public function __construct($config=[]){
$this->template = new Template($config);
class Think
{
private $template = null;
public function __construct($config = [])
{
$this->template = new Template($config);
}
public function fetch($template,$data=[],$cacheId=''){
if(is_file($template)) {
$this->template->display($template,$data,$cacheId);
}else{
$this->template->fetch($template,$data);
public function fetch($template, $data = [], $cacheId = '')
{
if (is_file($template)) {
$this->template->display($template, $data, $cacheId);
} else {
$this->template->fetch($template, $data);
}
}
}