PHP code example of iassasin / phplate
1. Go to this page and download the library: Download iassasin/phplate 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/ */
iassasin / phplate example snippets
use Iassasin\Phplate\Template;
// Настройка пути к каталогу с шаблонами
Template::init($_SERVER['DOCUMENT_ROOT'].'/resources/templates/');
echo Template::build('order', [
'name' => 'Петя',
'order' => [
'id' => 489,
'address' => 'ул. Шаблонная, д.1, кв. 1',
],
]);