src/Koldy/Response/View.php
public function setViewPath(string $basePath): self
    {
        $this->viewPath = $basePath;

        if (substr($this->viewPath, -1) != '/') {
            $this->viewPath .= '/';
        }

        return $this;
    }
public function setViewPath(string $basePath): self
    {
        $this->viewPath = $basePath;

        if (substr($this->viewPath, -1) != '/') {
            $this->viewPath .= '/';
        }

        return $this;
    }
public function setViewPath ( string $ basePath ) : self { $ this -> viewPath = $ basePath ; if ( substr ( $ this -> viewPath , - 1 ) != '/' ) { $ this -> viewPath .= '/' ; } return $ this ; }
Set custom view path where views are stored. Any additional use within this instance will be relative to the
path given here

@param string $basePath

@return View
Set custom view path where views are stored . Any additional use within this instance will be relative to the path given here