PHP code example of duon / cms-boiler
1. Go to this page and download the library: Download duon/cms-boiler 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/ */
duon / cms-boiler example snippets
use Duon\Cms\Cms;
use Duon\Cms\Boiler\Renderer;
use Duon\Core\App;
$cms = new Cms();
$cms->renderer('template', Renderer::class)->args(
dirs: __DIR__ . '/templates',
defaults: ['siteName' => 'My Site'],
);
$app = App::create();
$app->load($cms);