34 lines
649 B
PHP
34 lines
649 B
PHP
<?php
|
|
|
|
require_once '../src/Klein.php';
|
|
use ctiso\Klein;
|
|
|
|
$data = [
|
|
[
|
|
'id' => 0,
|
|
'id_table' => 0,
|
|
'name' => '',
|
|
'header' => 'Header #1',
|
|
'comment' => '',
|
|
'colspan' => 0,
|
|
'rowspan' => 4,
|
|
'row' => 0,
|
|
'position' => 0,
|
|
'type' => '',
|
|
],
|
|
[
|
|
'id' => 1,
|
|
'id_table' => 0,
|
|
'name' => '',
|
|
'header' => '',
|
|
'comment' => 'Header #2',
|
|
'rowspan' => 0,
|
|
'row' => 0,
|
|
'position' => 1,
|
|
'type' => '',
|
|
]
|
|
];
|
|
|
|
|
|
$tpl = new Klein(__DIR__ . '/cache');
|
|
echo $tpl->render('template2.html'. ['content' => $data]);
|