Fwd: [SMARTY] Variables with dots in templates
| From: | Paul | Date: | Wed, 08 Sep 2004 08:39:09 +0000 |
| Subject: | Fwd: [SMARTY] Variables with dots in templates | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11773@lists.php.net to get a copy of this message | ||
---------- Forwarded message ----------
From: Paul <pardel@gmail.com>
Date: Wed, 8 Sep 2004 09:38:41 +0100
Subject: Re: [SMARTY] Variables with dots in templates
To: Mark Rogers <mark@quarella.co.uk>
Hi,
I am using the same logic when trying to use variable with 'special'
chars in them, like SUBS-FREE.
Paul
On Tue, 7 Sep 2004 14:53:14 +0100, Mark Rogers <mark@quarella.co.uk> wrote:
> > Maybe use something like:
> >
> > {if array_key_exists('utenti_servizi.tipo_abbonamento', $cb_src)}
>
> Also, I haven't tried it but the following ought to work:
> {assign var="index" value="utenti_servizi.tipo_abbonamento"}
> {if $cb_src.$index}checked{/if}
>
> --
> Mark Rogers,
> More Solutions Ltd :: Tel: 0845 45 89 555
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>