Re: [SMARTY] tpl containing an array as a variable ?
| From: | messju mohr | Date: | Fri, 14 Mar 2003 14:44:57 +0000 |
| Subject: | Re: [SMARTY] tpl containing an array as a variable ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8655@lists.php.net to get a copy of this message | ||
On Fri, Mar 14, 2003 at 03:38:51PM +0100, Luc Saint-Elie wrote:
> Hello,
>
> I've a stupid doubt..
>
> instead of a loop in the template file is it possible to have a variable
> that is an array of templates to be included ?
sure (though untested):
{foreach from=$tpls item=tpl}
{include file=$tpl}
{/foreach}
> It's a question asked to me by a co-worker who want's to do the loop in the
> php file and display each row of a table as a template.
>
> Thanks in advance
>
> Luc
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP: Meine C-64-Basic-Übungen hat niemand zu Gesicht bekommen, während die in
PHP verbrochenen Laufstall-Verunfallungen heutiger Milchgesichter die Welt
verpesten und womöglich von Schlipstraeger-Deppen als e-Commerce-Lösung
gekauft worden sind.
Kristian Köhntopp