public function addViewPath($path)
    {
        $this->viewPath = (array) $this->viewPath;

        if (is_array($path)) {
            $this->viewPath = array_merge($path, $this->viewPath);
        }
        else {
            array_unshift($this->viewPath, $path);
        }
    }
public function addViewPath($path)
    {
        $this->viewPath = (array) $this->viewPath;

        if (is_array($path)) {
            $this->viewPath = array_merge($path, $this->viewPath);
        }
        else {
            array_unshift($this->viewPath, $path);
        }
    }
public function addViewPath ( $ path ) { $ this -> viewPath = ( array ) $ this -> viewPath ; if ( is_array ( $ path ) ) { $ this -> viewPath = array_merge ( $ path , $ this -> viewPath ) ; } else { array_unshift ( $ this -> viewPath , $ path ) ; } }
Prepends a path on the available view path locations.
@param string|array $path
@return void
Prepends a path on the available view path locations .