Примеры в отдельную папку
This commit is contained in:
parent
0f62ba3a29
commit
313413931b
7 changed files with 6 additions and 6 deletions
10
examples/example3.php
Normal file
10
examples/example3.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
$data = array('phedor', 'andrey');
|
||||
|
||||
require_once '../klein.php';
|
||||
|
||||
$tpl = new Klein();
|
||||
$tpl->compile('template3.html');
|
||||
|
||||
echo $tpl->render(array('names' => $data));
|
||||
Loading…
Add table
Add a link
Reference in a new issue