lib/Koine/View/Renderer.php
public function getFilePath($filename)
    {
        if (!strpos($filename, '.')) {
            $filename .= ".phtml";
        }

        foreach ($this->config->getPaths() as $path) {
            $file = "$path/$filename";

            if (file_exists($file)) {
                return $file;
            }
        }

        throw new FileNotFoundException(
            'File \'' . $filename . '\' was not found.'
        );
    }
public function getFilePath($filename)
    {
        if (!strpos($filename, '.')) {
            $filename .= ".phtml";
        }

        foreach ($this->config->getPaths() as $path) {
            $file = "$path/$filename";

            if (file_exists($file)) {
                return $file;
            }
        }

        throw new FileNotFoundException(
            'File \'' . $filename . '\' was not found.'
        );
    }
public function getFilePath ( $ filename ) { if ( ! strpos ( $ filename , '.' ) ) { $ filename .= ".phtml" ; } foreach ( $ this -> config -> getPaths ( ) as $ path ) { $ file = "$path/$filename" ; if ( file_exists ( $ file ) ) { return $ file ; } } throw new FileNotFoundException ( 'File \'' . $ filename . '\' was not found.' ) ; }
Returns the path for the given filename.

@throws FileNotFoundException when file does not exist in the view paths
@return string
Returns the path for the given filename .