Re: How to use a Smarty variable in an external source ?
| From: | Luc Saint-Elie | Date: | Mon, 23 Jul 2001 15:31:35 +0000 |
| Subject: | Re: How to use a Smarty variable in an external source ? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1250@lists.php.net to get a copy of this message | ||
En réponse à Monte Ohrt <monte@ispi.net>:
> You will need to include the external source as a template.
> If there are no other curly braces in the XML file,
> should should be able to just include it.
>
> {include file="foo.xml"}
Monte,
First, apologies if this question is stupid...
Ive not yet tried (Ill tonight) but even if "it works".. I dont
understand why.
Does that mean that my XML file will be parsed twice, one time
by my php file to produce arrays and a second time by Smarty to
look for the variables and replace them in the template file ? ?
Luc