Source for file sample_it.php
Documentation is available at sample_it.php
require_once 'HTML/Template/IT.php';
'0' => array ('Stig', 'Bakken'),
'1' => array ('Martin', 'Jansen'),
'2' => array ('Alexander', 'Merz')
$tpl->loadTemplatefile ('main.tpl.htm', true , true );
foreach ($data as $name) {
foreach ($name as $cell) {
// Assign data to the inner block
$tpl->setCurrentBlock ('cell');
$tpl->setVariable ('DATA', $cell);
$tpl->parseCurrentBlock ();
// Assign data and the inner block to the
$tpl->setCurrentBlock ('row');
$tpl->parseCurrentBlock ();
Documentation generated on Mon, 11 Mar 2019 15:36:53 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|