示例#1
0
文件: index.php 项目: h2lsoft/tpln
<?php

include '../header.inc.php';
$tpln = new Tpln_Engine();
$models = array('Fiat 500', 'Mercedes class A', '');
$model = $models[rand(0, 2)];
$tpln->open('template.html');
echo $tpln->render();
示例#2
0
文件: index.php 项目: h2lsoft/tpln
<?php

include '../header.inc.php';
$tpln = new Tpln_Engine();
$tpln->open('template.html');
$output = $tpln->render();
if (!isset($_GET['ajax'])) {
    die($output);
} else {
    $bloc = $tpln->getAjaxBloc("content", $output);
    die($bloc);
}