Re: [SMARTY] assign

Urb LeJeune <[email protected]>
Newsgroups gmane.comp.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 

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.