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, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.