PHP code example of robinn / uikit
1. Go to this page and download the library: Download robinn/uikit 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/ */
robinn / uikit example snippets
ob_start();
echo 'HTML code';
echo alert('Default');
echo layout(ob_get_clean(), [
'title' => 'Site title',
]);
$html = get_ui()
->addPath(__DIR__.'/templates') // Path to dir with custom templates
->render('page'); // page.twig in templates/ dir
echo layout($html, [
'title' => 'Site title',
]);