src/Leevel/Router/View.php
public function assign($name, $value = null): IView
    {
        $this->theme->setVar($name, $value);

        return $this;
    }
public function assign($name, $value = null): IView
    {
        $this->theme->setVar($name, $value);

        return $this;
    }
变量赋值

@param mixed $name
@param mixed $value

@return $this