For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > September 2004 > Re: [SMARTY] Variables with dots in templates









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] Variables with dots in templates
Mark Rogers

2004-09-07, 4:11 pm

> 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com