Обьекты в качесте значений

This commit is contained in:
origami11 2017-03-28 17:29:12 +03:00
parent 16fdce2f75
commit a488b6085a
3 changed files with 58 additions and 7 deletions

View file

@ -6,8 +6,7 @@ function title($x) {
return ucfirst($x);
}
$tpl = new Klein();
$tpl->compile('tempalte.html');
$tpl = new Klein('tempalte.html');
echo $tpl->render(array(
'pagename' => 'awesome people',