обновление которое может сломать часть примеров
This commit is contained in:
parent
3b7e186fda
commit
f11b9b3e56
7 changed files with 22 additions and 30 deletions
|
|
@ -1,10 +1,9 @@
|
|||
<?php
|
||||
|
||||
$data = array('phedor', 'andrey');
|
||||
$data = ['phedor', 'andrey'];
|
||||
|
||||
require_once '../klein.php';
|
||||
require_once '../Klein.php';
|
||||
|
||||
$tpl = new Klein();
|
||||
$tpl->compile('template3.html');
|
||||
$tpl = new Klein('template3.html');
|
||||
|
||||
echo $tpl->render(array('names' => $data));
|
||||
echo $tpl->render(['names' => $data]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue