GM Ade,
Thank you very much for your reply to my question
about Smarty
assign.
>There might be something better, but I've been able to
initialize an
>array with this hack:
>
> {assign var="foo"
value=","|explode:"1,2,3,4,5"}
This is a very clever work around and I love
cleverness. I used to
teach computer science and I think what you have done is not
a hack
but rather a "Kluge" A kluge is
solving a problem by using
something in a way that it was not originally intended to
do.
Urb
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|