Re: [SMARTY] assign

Ade Olonoh <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
I don't think you can assign more than one variable. 

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 will create an array named "foo" with values 1-5.


Urb LeJeune wrote:
> Within a template is it possible to assign more than one variables
> within a  {assign var="foo" value="Smarty"} statement?
>
> Also is it possible to initialize an array within
> an {assign} statement?
>
>         Thanks
>
> Urb
>
-- 

Ade Olonoh, Owner/Software Developer
Recursive Function, LLC - Web-based software development
http://recursivefunction.com | http://www.formspring.com

-- 
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.