Re: [SMARTY] assign

From: Date: Thu, 20 Apr 2006 12:07:43 +0000
Subject: Re: [SMARTY] assign
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13397@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#13397) next »