Source for file block.php
Documentation is available at block.php
include_once 'HTML/Template/PHPLIB.php';
include_once 'Benchmark/Timer.php';
"ISBN345624345" => "Matrix 2",
"ISBN45df32342" => "Roger Rabbit",
"ISBN305632232" => "foo bar",
"ISBN674589123" => "Joe user's adventures"
$t = & new myT("/usr/local", "keep");
$timer = & new Benchmark_Timer ();
$t->setBlock("block","articlerow","ar");
"TITLE" => "This is a block integrated into another template",
foreach ($articles as $isbn => $name) {
* easy to use rule of thumb: first parameter is the last
* from setBlock, second is the second from setBlock, third
* is TRUE in order to append the parsed data to the template var
$t->parse("ar", "articlerow", TRUE );
$t->parse("CONTENT", "block");
$t->pparse ("out",array ("main"));
Documentation generated on Mon, 11 Mar 2019 15:10:06 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|