Re: HTML_Template_IT

From: Date: Tue, 15 Jun 2004 13:27:23 +0000
Subject: Re: HTML_Template_IT
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13162@lists.php.net to get a copy of this message
It does work with HTML_Template_Sigma, and it looks like it would be easy enough to switch my application to use Sigma instead. Do you think this would be the best way to go? Thanks! ----Original Message Follows---- From: Bertrand Mansion <bmansion@mamasam.com> To: Julie Knoll <k_julie@hotmail.com> CC: pear-general@lists.php.net Subject: Re: [PEAR] HTML_Template_IT Date: Tue, 15 Jun 2004 11:18:04 +0200 Julie Knoll wrote:
When assigning a string to the template where the string contains a $, the $
and the next 2 characters will be stripped out. For example, assigning '$100
million' becomes 0 million. I know I can get around this by using quotemeta(), but I didn't know if this should be considered a bug? <?php include_once('HTML/Template/IT.php'); $tpl = new HTML_Template_IT(); $tpl->loadTemplatefile('test.inc.html'); $tpl->setVariable('STRING' , '$100 million'); $tpl->show(); ?>
Did you try with HTML_Template_Sigma ? I think it is more reliable. Bertrand Mansion Mamasam _________________________________________________________________ Watch the online reality show Mixed Messages with a friend and enter to win a trip to NY http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/01/

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