public function setVars($data, $merge = true)
    {
        if ($merge) {
            $this->_vars = $data + $this->_vars;
        } else {
            $this->_vars = $data;
        }

        return $this;
    }
public function setVars($data, $merge = true)
    {
        if ($merge) {
            $this->_vars = $data + $this->_vars;
        } else {
            $this->_vars = $data;
        }

        return $this;
    }
public function setVars ( $ data , $ merge = true ) { if ( $ merge ) { $ this -> _vars = $ data + $ this -> _vars ; } else { $ this -> _vars = $ data ; } return $ this ; }
Saves view vars for use inside templates.

@param array $data Array of data.
@param bool $merge Whether to merge with existing vars, default true.
@return $this
Saves view vars for use inside templates .