обновление которое может сломать часть примеров

This commit is contained in:
andrey 2017-03-29 10:34:59 +03:00
parent 3b7e186fda
commit f11b9b3e56
7 changed files with 22 additions and 30 deletions

View file

@ -1,6 +1,6 @@
<?php
require_once '../klein.php';
require_once '../Klein.php';
function title($x) {
return ucfirst($x);
@ -8,11 +8,11 @@ function title($x) {
$tpl = new Klein('tempalte.html');
echo $tpl->render(array(
echo $tpl->render([
'pagename' => 'awesome people',
'authors' => [['name' => 'Paul', 'age' => 10], ['name' => 'Jim', 'age' => 11], ['name' => 'Jane', 'age' => 12]],
'city'=> [
'Yaroslaval' => 1,
'Moscow' => 2
]
));
]);