src/Library/View/View.php
protected function buildPath($path = '')
    {
        $path = $path ? $path : $this->getPath();
        return $this->getBasePath() . ltrim($path, "/") . '.php';
    }
protected function buildPath($path = '')
    {
        $path = $path ? $path : $this->getPath();
        return $this->getBasePath() . ltrim($path, "/") . '.php';
    }
Builds path for including
If $view starts with / the path will be relative to the root of the views folder.
Otherwise to caller file location.

@param string $path
@return string