<?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();
<?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); }