src/Controller.php
protected function assign($name, $value = '')
    {
        if (is_array($name)) {
            self::$assign = array_merge(self::$assign, $name);
        } else {
            self::$assign[$name] = $value;
        }

    }
protected function assign($name, $value = '')
    {
        if (is_array($name)) {
            self::$assign = array_merge(self::$assign, $name);
        } else {
            self::$assign[$name] = $value;
        }

    }
赋值
@date   2017-05-14T21:30:23+0800
@author ChenMingjiang
@param  [type]                   $field [变量名]
@param  [type]                   $value [变量值]
@return [type]                          [description]