Обьекты в качесте значений
This commit is contained in:
parent
16fdce2f75
commit
a488b6085a
3 changed files with 58 additions and 7 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue