php2smarty
| From: | Oguz Altun | Date: | Mon, 16 Apr 2001 07:33:34 +0000 |
| Subject: | php2smarty | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-547@lists.php.net to get a copy of this message | ||
Hi,
I occasionally get somebody elses php program and use it in my apps. If
there were a tool to convert usual php embedded html files into php and tpl
files it would help us a lot.
It would also increase the popularity of smarty.
Do you think to write such a tool?
thx.
----- Original Message -----
From: "Andrei Zmievski" <andrei@ispi.net>
To: "Hojtsy Gabor" <gabor@hojtsy.hu>; "Smarty List"
<smarty@lists.ispi.net>
Sent: Sunday, April 15, 2001 6:40 PM
Subject: [smarty] Re: howto loop nested arrays?
> This will be really easy with the next release of Smarty.
>
> At 12:51 PM 4/15/01 +0200, Hojtsy Gabor wrote:
> >Hi!
> >
> >I am just wondering how to loop through this array in smarty.
> >
> >array(
> > array(
> > "one" => 1,
> > "two" => 2,
> > "another" => array ("o" => 1, "t" => 2)
> > )
> > array(
> > "one" => 3,
> > "two" => 4,
> > "another" => array ("o" => 12, "t" => 43)
> > )
> >)
> >
> >So I know I can have one outer section. Lets say
> >we assigned this array as ex.
> >
> >{secition name=outer loop=ex}
> ><br>{$outer/ex.one}<br>{$outer/ex.two}
> >{section name=inner loop=$outer/ex.another}
> >
> >The question is how to name the inner loop
> >section with the loop var, and then how to
> >access the vars?
> >
> >{/section}
> >{/section}
> >
> >
> >Thanks,
> >Goba
> >........................................................... . . . . .
> >Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror
> >
> >
> >---
> >You are currently subscribed to smarty as: andrei@ispi.net
> >To unsubscribe send a blank email to $subst('Email.Unsub')
> >Visit Smarty's homepage at
> >http://www.phpinsider.com/php/code/Smarty/
>
> -Andrei
>
>
> ---
> You are currently subscribed to smarty as: oguz@planet.net.tr
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/