fenom/sandbox/fenom.php
2014-04-10 01:49:15 +04:00

23 lines
471 B
PHP

<?php
namespace Ts {
class Math {
public static function multi($x, $y) {
return $x * $y;
}
}
}
namespace {
require_once __DIR__.'/../vendor/autoload.php';
$fenom = Fenom::factory(__DIR__.'/templates', __DIR__.'/compiled', Fenom::FORCE_COMPILE);
$fenom->display("extends/75-child.tpl", array(
"user" => array(
"name" => "Ivka",
'type' => 'new'
),
'type' => 'new'
));
}