src/View/ViewFinder.php
public function find($view)
    {
        $view = str_replace('.', DIRECTORY_SEPARATOR, $view) . '.php';

        foreach ($this->locations as $location)
        {
            if (is_file($path = $location.'/'.$view)) {
                return $path;
            }
        }

        return false;
    }
public function find($view)
    {
        $view = str_replace('.', DIRECTORY_SEPARATOR, $view) . '.php';

        foreach ($this->locations as $location)
        {
            if (is_file($path = $location.'/'.$view)) {
                return $path;
            }
        }

        return false;
    }
public function find ( $ view ) { $ view = str_replace ( '.' , DIRECTORY_SEPARATOR , $ view ) . '.php' ; foreach ( $ this -> locations as $ location ) { if ( is_file ( $ path = $ location . '/' . $ view ) ) { return $ path ; } } return false ; }
Search for the view and return the path

@param $view
@return bool|string
Search for the view and return the path