public function assign($name, $value = null)
    {
        if (is_array($name)) {
            $this->data = $name + $this->data;
        } else {
            $this->data[$name] = $value;
        }
        return $this;
    }
public function assign($name, $value = null)
    {
        if (is_array($name)) {
            $this->data = $name + $this->data;
        } else {
            $this->data[$name] = $value;
        }
        return $this;
    }
public function assign ( $ name , $ value = null ) { if ( is_array ( $ name ) ) { $ this -> data = $ name + $ this -> data ; } else { $ this -> data [ $ name ] = $ value ; } return $ this ; }
Assign variables to template

@param string|array $name  The name of the variable or variables array
@param mixed  $value The value of the variable
@return $this
Assign variables to template