Building arrays within templates

From: Date: Thu, 03 Jul 2003 15:24:02 +0000
Subject: Building arrays within templates
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9827@lists.php.net to get a copy of this message
Is it possible to build arrays within templates? (Eg for passing to other template functions.) Eg, what I'd like to do is: {include file="mytemplate.tpl" data[]="line1" data[]="line2" data[]="line3"} .. where mytemplate.tpl includes a loop to handle $data. [I know this doesn't work, but maybe there's a syntax that does?] Similarly for {assign var="data[]" value="Line1"}? -- Mark Rogers, More Solutions Ltd

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