use true/false * - int => use 1/0 * - any other value => use the value you specified or empty * * The variable {PAT_ROW_VAR} is always available, * independent from the addSystemVars attribute. * * $Id: example_attributes_addsystemvars.php 453 2007-05-30 12:58:43Z gerd $ * * @author Stephan Schmidt * @package patTemplate * @subpackage Examples * @link http://www.php-tools.net */ /** * Main examples prepend file, needed *only* for the examples framework! */ include_once 'patExampleGen/prepend.php'; // EXAMPLE START ------------------------------------------------------ /** * patErrorManager class */ require_once $neededFiles['patErrorManager']; /** * patTemplate */ require_once $neededFiles['patTemplate']; $tmpl = &new patTemplate(); $tmpl->setRoot( 'templates' ); $tmpl->readTemplatesFromInput( 'example_attributes_addsystemvars.tmpl' ); $tmpl->addVar( 'tmpl-1', 'dummy', array( 'one', 'two', 'three', 'four', 'five' ) ); $tmpl->addVar( 'tmpl-2', 'dummy', array( 'one', 'two', 'three', 'four', 'five' ) ); $tmpl->addVar( 'tmpl-3', 'dummy', array( 'one', 'two', 'three', 'four', 'five' ) ); $tmpl->displayParsedTemplate('page'); ?>