PHP code example of makframework / template

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

    

makframework / template example snippets


 
= new Template('./templates/');
$tpl->registerLanguages(['es' => './languages/es.ini']);

$tpl->setData('user_id', 10);

echo $tpl->render('home.html', ['title' => 'home', 'products' => ['PC','Mobile']]);