src/FrontendLoader.php
public function getAssetPath()
    {
        $url_frags = parse_url($_SERVER['REQUEST_URI']);
        if (!array_key_exists('query', $url_frags)) return false;
        parse_str($url_frags['query'], $query_vars);
        if (!array_key_exists('asset', $query_vars)) return false;
        $folder_name = self::getAssetFolderName($query_vars['asset']);
        $file_name = sprintf(
            $this->actual_path.'/assets/%s/%s',
            $folder_name,
            $query_vars['asset']
        );
        
        if (file_exists($file_name)) {
           return $file_name;
        }
        return $false;
    }
public function getAssetPath()
    {
        $url_frags = parse_url($_SERVER['REQUEST_URI']);
        if (!array_key_exists('query', $url_frags)) return false;
        parse_str($url_frags['query'], $query_vars);
        if (!array_key_exists('asset', $query_vars)) return false;
        $folder_name = self::getAssetFolderName($query_vars['asset']);
        $file_name = sprintf(
            $this->actual_path.'/assets/%s/%s',
            $folder_name,
            $query_vars['asset']
        );
        
        if (file_exists($file_name)) {
           return $file_name;
        }
        return $false;
    }
public function getAssetPath ( ) { $ url_frags = parse_url ( $ _SERVER [ 'REQUEST_URI' ] ) ; if ( ! array_key_exists ( 'query' , $ url_frags ) ) return false ; parse_str ( $ url_frags [ 'query' ] , $ query_vars ) ; if ( ! array_key_exists ( 'asset' , $ query_vars ) ) return false ; $ folder_name = self :: getAssetFolderName ( $ query_vars [ 'asset' ] ) ; $ file_name = sprintf ( $ this -> actual_path . '/assets/%s/%s' , $ folder_name , $ query_vars [ 'asset' ] ) ; if ( file_exists ( $ file_name ) ) { return $ file_name ; } return $ false ; }
Determine the path for an asset using the query string
@return string bool
Determine the path for an asset using the query string