public function assign($var, $value = null)
    {
        if (is_string($var)) {
            $this->$var = $value;
        } elseif (is_array($var)) {
            foreach ($var as $key => $value) {
                $this->$key = $value;
            }
        }
    }
public function assign($var, $value = null)
    {
        if (is_string($var)) {
            $this->$var = $value;
        } elseif (is_array($var)) {
            foreach ($var as $key => $value) {
                $this->$key = $value;
            }
        }
    }
public function assign ( $ var , $ value = null ) { if ( is_string ( $ var ) ) { $ this -> $ var = $ value ; } elseif ( is_array ( $ var ) ) { foreach ( $ var as $ key => $ value ) { $ this -> $ key = $ value ; } } }
Assign value to a variable for use in a template
@param string|array $var
@param mixed $value
@ignore
Assign value to a variable for use in a template