public static function getViewFilePath($path) {
        if (empty($path)) {
            return false;
        }

        if ((strpos($path, '/') !== false || strpos($path, '\\') !== false) && is_file($result = $path)) {
            return $result;
        }

        if (self::isRelativePath($path) && is_file($result = self::mapPath($path))) {
            return $result;
        }

        if (is_file($result = PHPMVC_VIEW_PATH . PHPMVC_VIEW . PHPMVC_DS . $path)) {
            return $result;
        }
       
        if (is_file($result = PHPMVC_SHARED_PATH . $path)) {
            return $result;
        }

        if (($result = self::appendPhpExtension($path)) !== false) {
            return self::getViewFilePath($result);
        }

        return false;
    }
public static function getViewFilePath($path) {
        if (empty($path)) {
            return false;
        }

        if ((strpos($path, '/') !== false || strpos($path, '\\') !== false) && is_file($result = $path)) {
            return $result;
        }

        if (self::isRelativePath($path) && is_file($result = self::mapPath($path))) {
            return $result;
        }

        if (is_file($result = PHPMVC_VIEW_PATH . PHPMVC_VIEW . PHPMVC_DS . $path)) {
            return $result;
        }
       
        if (is_file($result = PHPMVC_SHARED_PATH . $path)) {
            return $result;
        }

        if (($result = self::appendPhpExtension($path)) !== false) {
            return self::getViewFilePath($result);
        }

        return false;
    }
public static function getViewFilePath ( $ path ) { if ( empty ( $ path ) ) { return false ; } if ( ( strpos ( $ path , '/' ) !== false || strpos ( $ path , '\\' ) !== false ) && is_file ( $ result = $ path ) ) { return $ result ; } if ( self :: isRelativePath ( $ path ) && is_file ( $ result = self :: mapPath ( $ path ) ) ) { return $ result ; } if ( is_file ( $ result = PHPMVC_VIEW_PATH . PHPMVC_VIEW . PHPMVC_DS . $ path ) ) { return $ result ; } if ( is_file ( $ result = PHPMVC_SHARED_PATH . $ path ) ) { return $ result ; } if ( ( $ result = self :: appendPhpExtension ( $ path ) ) !== false ) { return self :: getViewFilePath ( $ result ) ; } return false ; }
Searches for a file with a specified name and returns the correct path.
If the file is not found, returns FALSE.

@param string $path The file name or file path.

@return string|bool
Searches for a file with a specified name and returns the correct path . If the file is not found returns FALSE .