обновление которое может сломать часть примеров
This commit is contained in:
parent
3b7e186fda
commit
f11b9b3e56
7 changed files with 22 additions and 30 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$data = array (
|
||||
array (
|
||||
$data = [
|
||||
[
|
||||
'id' => 0,
|
||||
'id_table' => 0,
|
||||
'name' => '',
|
||||
|
|
@ -12,8 +12,8 @@ $data = array (
|
|||
'row' => 0,
|
||||
'position' => 0,
|
||||
'type' => '',
|
||||
),
|
||||
array (
|
||||
],
|
||||
[
|
||||
'id' => 1,
|
||||
'id_table' => 0,
|
||||
'name' => '',
|
||||
|
|
@ -23,13 +23,12 @@ $data = array (
|
|||
'row' => 0,
|
||||
'position' => 1,
|
||||
'type' => '',
|
||||
)
|
||||
);
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
require_once '../klein.php';
|
||||
require_once '../Klein.php';
|
||||
|
||||
$tpl = new Klein();
|
||||
$tpl->compile('template2.html');
|
||||
$tpl = new Klein('template2.html');
|
||||
|
||||
echo $tpl->render(array('content' => $data));
|
||||
echo $tpl->render(['content' => $data]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue