phpbar.de logo

Mailinglisten-Archive

[php] Re: [SMARTY] Fw: possible to parse through vars?

[php] Re: [SMARTY] Fw: possible to parse through vars?

j.metzger at steptown.com j.metzger at steptown.com
Mon Aug 18 18:49:48 CEST 2003


Hi Martin,


example.tpl
-----------------
<html>
<body>
<h3>
{$IMAGE_PETER_GIF}
</h3>
<h3>
{$IMAGE_HANS_JPG}
</h3>
</body>
</html>
 


> Why don't you put all these vars into an array?
> 
The problem is not an array or not, the problem
is to get all the names of the vars out of the template
before assigning or displaying.
(That is because I need them to build the name of
image with the vars out of the template, so I don't 
know them before assigning..)


php::bar PHP Wiki   -   Listenarchive