PHP code example of gluephp / glue-plates

1. Go to this page and download the library: Download gluephp/glue-plates 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/ */

    

gluephp / glue-plates example snippets


$app = new Glue\App;

$app->config->override([
    'plates' => [
        'path'    => '/absolute/path/to/templates/folder',
    ],
]);

$app->register(
    new Glue\Plates\ServiceProvider()
);

$plates = $app->make('League\Plates\Engine');

$plates = $app->plates;