Re: [SMARTY] Config var bug?
| From: | Nino Katic | Date: | Mon, 24 Feb 2003 15:36:06 +0000 |
| Subject: | Re: [SMARTY] Config var bug? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8153@lists.php.net to get a copy of this message | ||
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#}