Re: [SMARTY] assign

[email protected] (Urb LeJeune) Thu, 20 Apr 2006 08:07:43 -0400
Newsgroups php.smarty.general
Message-ID <[email protected]>
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