src/View/SmartyView.php
public function assign($name, $value)
    {
        try {
            if ($this->smarty->getTemplateVars($name) !== null) {
                throw new ViewException('You can\'t assign "' . $name . '" in Smarty');
            }

            $assign = $this->smarty->assign($name, $value);
        } catch (ViewException $e) {
            echo $e->getMessage() . '<br />
                File: ' . $e->getFile() . '<br />
                Code line: ' . $e->getLine() . '<br />
                Trace: ' . $e->getTraceAsString();
            exit();
        }

        return $assign;
    }
public function assign($name, $value)
    {
        try {
            if ($this->smarty->getTemplateVars($name) !== null) {
                throw new ViewException('You can\'t assign "' . $name . '" in Smarty');
            }

            $assign = $this->smarty->assign($name, $value);
        } catch (ViewException $e) {
            echo $e->getMessage() . '<br />
                File: ' . $e->getFile() . '<br />
                Code line: ' . $e->getLine() . '<br />
                Trace: ' . $e->getTraceAsString();
            exit();
        }

        return $assign;
    }
Set the var to the template.

@param string $name
@param string $value

@return mixed