mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进View类的assign方法 去掉多余代码
This commit is contained in:
@@ -61,7 +61,6 @@ class View
|
|||||||
{
|
{
|
||||||
if (is_array($name)) {
|
if (is_array($name)) {
|
||||||
$this->data = array_merge($this->data, $name);
|
$this->data = array_merge($this->data, $name);
|
||||||
return $this;
|
|
||||||
} else {
|
} else {
|
||||||
$this->data[$name] = $value;
|
$this->data[$name] = $value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user