HTML_Template_Sigma: Overwrite global variables

From: Date: Wed, 18 Jan 2006 14:02:45 +0000
Subject: HTML_Template_Sigma: Overwrite global variables
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22584@lists.php.net to get a copy of this message
Hi I encountered that in Sigma global variables once set do not seem to be changeable: $keywords = "'my publishing company', books, novels"; $tpl->setGlobalVariable("keywords", $keywords); // Lots of processing here, some do clearVariables() // Script finds out that it has to display a book detail // Now it has to add some keywords $author = "Nice Name"; $title = "Gorgeous Book"; $keywords .= ", '".$author."', '".$title."'"; $tpl->setGlobalVariable("keywords", $keywords); {keywords} prints "'my publishing company', books, novels". Is this the expected behaviour? Can I override it or do I have to set the "keywords" variable at the end of the script then? Thanks Markus

« previous php.pear.general (#22584) next »