RE: [SMARTY] another section problem
| From: | Sadri Sahraoui | Date: | Sun, 16 Mar 2003 18:10:48 +0000 |
| Subject: | RE: [SMARTY] another section problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8679@lists.php.net to get a copy of this message | ||
Hello
I've made the change so I still get a blank output
any idea ?
Thanks
Sadri
----- Original Message -----
From: "Scott Matthewman" <smatthewman@planetoutpartners.com>
Date: Sun, 16 Mar 2003 15:00:41 -0000
To: "'Sadri Sahraoui'" <okworld@linuxmail.org>,
<smarty-general@lists.php.net>
Subject: RE: [SMARTY] another section problem
> > {section name=item loop=$front}
> > ID : $front[item].newsID <br />
> > subject : $front[item].newsSubject <br />
> > content : $front[item].newsContent <br />
> > Img : $front[item].newsImg <br />
> > {/section}
>
> Your PHP variable $news is mapped into the Smarty variable named item, so
> that's what you need to be looping through:
>
> {section name=x loop=$item}
> ID : $item[x].newsID <br />
> subject : $item[x].newsSubject <br />
> content : $item[x].newsContent <br />
> Img : $item[x].newsImg <br />
> {/section}
>
> Obviously in this context, it might make more sense to use a different
> Smartry variable name other than "item", but that's your call!
>
> Scott
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr
Powered by Outblaze