Box\Brainy\Templates\TemplateBase::setVariable PHP Method

setVariable() public method

Assigns $value to the variale $var.
See also: 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
return void
    public function setVariable($var, $value, $scope = -1)
    {
        // Pass-through
        $this->assignSingleVar($var, $value, $scope);
    }