Re: #20392 [Bgs->Csd]: HTML_Template_IT error with $ in values

From: Date: Tue, 11 Feb 2003 19:52:27 +0000
Subject: Re: #20392 [Bgs->Csd]: HTML_Template_IT error with $ in values
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13135@lists.php.net to get a copy of this message
<pajoye@php.net> wrote : > ID: 20392 > Updated by: pajoye@php.net > Reported By: olonoh@yahoo.com > -Status: Bogus > +Status: Closed > Bug Type: PEAR related > Operating System: Linux > PHP Version: 4.2.2 > Assigned To: pajoye > New Comment: > > Keep it closed. Replace preg by a str_replace does not solve these > problems. > > Besides that, can you, please, do not set status if you do not know > what the status means. > > thank's > > pierre Str_replace() solves this problem, I just tested. It works with Alexey's fork. Here is the code, so you just have to copy/paste it. Please, fix this problem... <?php require_once('HTML/Template/ITX.php'); $tpl = new HTML_Template_ITX('.'); $tpl->loadTemplateFile('test.html'); $tpl->setVariable('VAR1', 'this is $1 testing.'); $tpl->show(); ?> Test.html : <html><body> var1: {VAR1} </body> </html> Thanks so much for your time (and reopen the bug, it's not closed). Bertrand Mansion Mamasam

« previous php.pear.dev (#13135) next »