PHP code example of artoodetoo / dirk
1. Go to this page and download the library: Download artoodetoo/dirk 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/ */
artoodetoo / dirk example snippets
2\Templating\Dirk;
$view = new Dirk([
'views' => __DIR__.'/views',
'cache' => __DIR__.'/cache'
]);
$name = '<artoodetoo>';
$list = [1, 2, 3, 4, 5];
$view->render('hello', compact('name', 'list'));