src/Models/View.php
public function setVars($vars)
    {
        // If vars is an array
        if (is_array($vars) && count($vars)) {
            // Iterate and set the var
            foreach ($vars as $key => $value) {
                $this->setVar($key, $value);
            }
        }
        return $this;
    }
public function setVars($vars)
    {
        // If vars is an array
        if (is_array($vars) && count($vars)) {
            // Iterate and set the var
            foreach ($vars as $key => $value) {
                $this->setVar($key, $value);
            }
        }
        return $this;
    }
public function setVars ( $ vars ) { // If vars is an array if ( is_array ( $ vars ) && count ( $ vars ) ) { // Iterate and set the var foreach ( $ vars as $ key => $ value ) { $ this -> setVar ( $ key , $ value ) ; } } return $ this ; }
Sets a variable for the view

@access public
@param array $vars
@return self
Sets a variable for the view