1、更新内核

2、代码格式化
This commit is contained in:
2016-07-21 14:29:32 +08:00
parent 3cc2c38dc7
commit a72ba86faa
20 changed files with 1214 additions and 1083 deletions

View File

@@ -36,18 +36,6 @@ class View extends Response
->fetch($data, $this->vars, $this->replace);
}
/**
* 视图变量赋值
* @access public
* @param array $vars 模板变量
* @return $this
*/
public function vars($vars = [])
{
$this->vars = $vars;
return $this;
}
/**
* 获取视图变量
* @access public
@@ -56,11 +44,11 @@ class View extends Response
*/
public function getVars($name = null)
{
if(is_null($name)){
if (is_null($name)) {
return $this->vars;
}else{
} else {
return isset($this->vars[$name]) ? $this->vars[$name] : null;
}
}
}
/**