public function getFilePath($name, $extension = '.php')
    {
        $filename = trim(dotToPath($name), '/') . $extension;
        $file = null;
        foreach ($this->paths as $dir) {
            $realName = nPath($dir, $filename);
            if (file_exists($realName)) {
                $file = $realName;
                break;
            }
        }
        return $file;
    }
public function getFilePath($name, $extension = '.php')
    {
        $filename = trim(dotToPath($name), '/') . $extension;
        $file = null;
        foreach ($this->paths as $dir) {
            $realName = nPath($dir, $filename);
            if (file_exists($realName)) {
                $file = $realName;
                break;
            }
        }
        return $file;
    }
public function getFilePath ( $ name , $ extension = '.php' ) { $ filename = trim ( dotToPath ( $ name ) , '/' ) . $ extension ; $ file = null ; foreach ( $ this -> paths as $ dir ) { $ realName = nPath ( $ dir , $ filename ) ; if ( file_exists ( $ realName ) ) { $ file = $ realName ; break ; } } return $ file ; }
Get full path to view file
@param string $name View file name
@param string $extension
@return string|null
Get full path to view file