think\response\View::getVars PHP Метод

getVars() публичный Метод

获取视图变量
public getVars ( string $name = null ) : mixed
$name string 模板变量
Результат mixed
    public function getVars($name = null)
    {
        if (is_null($name)) {
            return $this->vars;
        } else {
            return isset($this->vars[$name]) ? $this->vars[$name] : null;
        }
    }