Re: New looping method proposal
| From: | Luc Saint-Elie | Date: | Mon, 19 Nov 2001 14:50:52 +0000 |
| Subject: | Re: New looping method proposal | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1958@lists.php.net to get a copy of this message | ||
En réponse à Anders Janson <anders.janson@era.ericsson.se>:
> The 'hard stuff' is not that hard (personal opinion).
> Surely, people will take the easy way out.
> Then they will try to solve thing with the 'easy'
> tools, become frustrated and leave Smarty. Hmm....
Hello,
A "dummy advice" about foreach and table function
I'm not competent to judge if foreach is better or not that section.
But I do like the idea that there are several ways to de the same thing with
Smarty.
The recent HTML_table port is a great example of this point.
Sure if you need sophisticated table with sophisticated layout this is clearly
not the way to go.
On the other hand if you need «just a table» to display for example members
listing or this kind of boring stuff, the HTML_table port is simply great.
So as long as all this doesn't add complexity or overhead to Smarty.. this is
simply fine.
Section are great, perhaps in some light circumstances, a foreach would be even
more cool.. fine
Luc