PHP code example of alexkuusk / malli
1. Go to this page and download the library: Download alexkuusk/malli 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/ */
alexkuusk / malli example snippets
use Alexkuusk\Malli\Malli;
echo (new Malli([
'_params' => [
'path' => '../tpl/',
'file' => 'index.tpl',
'block' => 'index', //if omitted, file name without extension is used
],
'_data' => [
'title' => 'Template test',
'books' => [
'One',
'two',
]
]));