Поменял местам key value

This commit is contained in:
Федор Подлеснов 2015-12-03 10:38:59 +03:00
parent 7562f54d2c
commit 3f5d4a5e9c
5 changed files with 46 additions and 4 deletions

35
example2.php Normal file
View file

@ -0,0 +1,35 @@
<?php
$data = array (
array (
'id' => 0,
'id_table' => 0,
'name' => '',
'header' => 'Наименование муниципального образования',
'comment' => '',
'colspan' => 0,
'rowspan' => 4,
'row' => 0,
'position' => 0,
'type' => '',
),
array (
'id' => 1,
'id_table' => 0,
'name' => '',
'header' => '',
'comment' => 'Над строкой - Прибыло всего (взрослых и детей)',
'rowspan' => 0,
'row' => 0,
'position' => 1,
'type' => '',
)
);
require_once 'klein.php';
$tpl = new Klein();
$tpl->compile('template2.html');
echo $tpl->render(array('content' => $data));