PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_IT » Bug #9577

Nested Variable Tags

Details

Request #9577Nested Variable Tags
Submitted2006-12-07 23:10 UTC
Fromcwroblew at webwisewardens dot com
Assigneddsp
StatusBogus
PackageHTML_Template_IT
PHP Version4.4.3
Roadmaps(Not assigned)

Comments

[2006-12-07 23:10 UTC] cwroblew at webwisewardens dot com

Description:
------------
In the old PHPLIB template.inc I could nest variable tags such as:

{{DeleteType}Id}

where I would first set the variable DeleteType to something like Artist. Then I could set ArtistId to something. I used this with the old PHPLIB template.inc to use the same delete confirmation form for more than one type of deletion, and use the same Id variable as the database field.

Test script:
---------------
<input name="{DeleteType}Id" type="hidden" id="{DeleteType}Id" value="{{DeleteType}Id}">

Expected result:
----------------
<input name="ArtistId" type="hidden" id="ArtistId" value="89">

Actual result:
--------------
<input name="ArtistId" type="hidden" id="ArtistId" value="">

[2006-12-08 13:37 UTC] dsp at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

As HTML_Template_IT aims to provide a simple API, we won't provide such a feature.