Source

class.PHPTemplateLayer.inc.php

Parent Class

Public function of PHPTemplateLayer

Example Usage


$PHPTemplateLayer->assign("variablename",$variablevalue);
$PHPTemplateLayer->assign("_ROOT.variablename",$variablevalue);

Usage Notes

A variable can be repeated any number of times in your template. If the variable is contained within a block in your template HTML, it's value must be assigned after that block is defined (but before any other block is defined) in your PHP code. If you need to assign a variable to an HTML area outside any block (for example after creating a block) you can do this by assigning the variable to the template's "root". You can assign different values to the same variable for the template's "root" and for different blocks.