Box\Brainy\Templates\TemplateBase::setVariable PHP Метод

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

Assigns $value to the variale $var.
См. также: TemplateData::assignSingleVar()
public setVariable ( string $var, mixed $value, integer $scope ) : void
$var string the template variable name
$value mixed the value to assign
$scope integer the scope to associate with the Smarty_Variable
Результат void
    public function setVariable($var, $value, $scope = -1)
    {
        // Pass-through
        $this->assignSingleVar($var, $value, $scope);
    }