#22432 [Opn->Csd]: Problems with variable substitution in HTML_Template_IT
| From: | pajoye@php.net | Date: | Wed, 12 Mar 2003 02:29:02 +0000 |
| Subject: | #22432 [Opn->Csd]: Problems with variable substitution in HTML_Template_IT | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14209@lists.php.net to get a copy of this message | ||
ID: 22432
Updated by: pajoye@php.net
Reported By: borz_off at cs dot msu dot su
-Status: Open
+Status: Closed
Bug Type: PEAR related
Operating System: all
PHP Version: 4.2.3
-Assigned To:
+Assigned To: pajoye
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-02-26 06:52:38] borz_off at cs dot msu dot su
require_once 'HTML/Template/IT.php';
$tpl = new HTML_Template_IT();
$tpl->setTemplate('Outer: {outer} <!-- BEGIN inner_block -->Inner:
{outer}, {inner}<!-- END inner_block -->', false, true);
$tpl->setVariable(array(
'outer' => 'foo',
'inner' => 'bar'
));
$tpl->show();
This script outputs
Outer: foo Inner: {outer}, bar
instead of
Outer: foo Inner: foo, bar
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22432&edit=1