RE: [SMARTY] switch statement ?
| From: | Rasmus Mohr | Date: | Mon, 29 Apr 2002 09:06:33 +0000 |
| Subject: | RE: [SMARTY] switch statement ? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3916@lists.php.net to get a copy of this message | ||
Why do you want to stuff a lot of functionality into the templates? It seems
to me that it would be a bad case of mixing the functionality and
presentation layer.
A lot of the requests on this list seems to be aimed at getting more and
more functionality into the template system (e.g. the PDF discussion). I
regard this as very wrong - you'll end up putting developer/designer layer
on top of PHP, and then you'll need a new layer on top of Smarty, to provide
the designers with a (somewhat) clean interface...
Try reading Jason Sweat's tutorial. It sums up the benefits of dividing the
application into layers (the infamous three... ;-) )
--------------------------------------------------------------
Rasmus T. Mohr Direct : +45 36 910 122
Application Developer Mobile : +45 28 731 827
Netpointers Intl. ApS Phone : +45 70 117 117
Vestergade 18 B Fax : +45 70 115 115
1456 Copenhagen K Email : mailto:rmo@netpointers.com
Denmark Website : http://www.netpointers.com
"Remember that there are no bugs, only undocumented features."
--------------------------------------------------------------
> -----Original Message-----
> From: Bertrand DUNOGIER [mailto:bdunogier@wanadoo.fr]
> Sent: Monday, April 29, 2002 10:55 AM
> To: smarty-general@lists.php.net
> Subject: [SMARTY] switch statement ?
>
>
> Hi,
>
> i was just wondering why there was no switch... case statement in
> smarty built-in functions. Any reason ? Or is it just not needed ?
>
> In my opinion, it could help.
>
>
> --
> Best regards,
> Bertrand mailto:bdunogier@wanadoo.fr
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>