PHP code example of skyline / direct-components-forwarding

1. Go to this page and download the library: Download skyline/direct-components-forwarding library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

skyline / direct-components-forwarding example snippets



use Skyline\Component\Config\OpenDirectoryComponent;

return [
    // Can be any name. Including it into template has no effect.
    'Open' => new OpenDirectoryComponent(
        '/Library',     // URI prefix  => <img src="/Public/Library/my-image.jpg">
        __DIR__ . "/path/to/library"
    )
];


__DIR__ . "/path/to/library/media/users/me.jpg";