Simple example

Template file: authors.tpl

    <tr><td colspan="2">{NUM_AUTHORS}</td></tr>
<!-- BEGIN authorline -->
<!-- END authorline -->

PHP code: authors.php

//we want to display this author list
$authors = array(
'Christian Weiske'  => '',
'Bjoern Schotte'     => ''

//create template object
$t =& new HTML_Template_PHPLIB(dirname(__FILE__), 'keep');
//load file
//set block

//set some variables
$t->setVar('PAGE_TITLE''Code authors as of ' date('Y-m-d'));

//display the authors
foreach ($authors as $name => $email) {

//finish and echo
echo $t->finish($t->parse('OUT''authors'));
Concept (Previous) Loading files (Next)
Last updated: Sat, 03 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.