R: [SMARTY] Variables with dots in templates
| From: | Valerio Santinelli | Date: | Tue, 07 Sep 2004 14:18:05 +0000 |
| Subject: | R: [SMARTY] Variables with dots in templates | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11771@lists.php.net to get a copy of this message | ||
Thanks to everybody for the suggestions. In the end I opted to go for
another field containing just the table name. This made everything easier to
work with.
Valerio Santinelli
> -----Messaggio originale-----
> Da: Mark Rogers [mailto:mark@quarella.co.uk]
>
> > 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}
>