Re: [SMARTY] Config var bug?

From: Date: Mon, 24 Feb 2003 15:38:23 +0000
Subject: Re: [SMARTY] Config var bug?
References: 1 2 3 4 5 6 7  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8154@lists.php.net to get a copy of this message
if the values argument is a string, it is exploded by commas. so, this would work: var = some text, some more text, and some more {cycle values=#var#} Monte On Mon, 2003-02-24 at 09:36, Nino Katic wrote: > Thx. Monte, it works. Could you add some support to access that values in > some nicer way :-) For example to detect if var values are separated with > comas and to treat that var as an array? Thx. one more time. > > Nino > > Monte Ohrt wrote: > > Actually, I forgot that cycle will accept an array of values... so > > this should work: > > > > index.php > > --------- > > > > $smarty = new Smarty; > > $smarty->config_overwrite=false; > > $smarty->display('index.tpl'); > > > > config.cnf > > ---------- > > > > var = "This is some text" > > var = "This is another text" > > var = "This is one more text" > > > > index.tpl > > --------- > > > > {config_load file="config.cnf"} > > > > {cycle values=#var#} > > {cycle values=#var#} > > {cycle values=#var#} -- Monte Ohrt <monte@ispi.net>

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