Re: [SMARTY] dots in variable names

From: Date: Fri, 03 Jun 2005 12:08:03 +0000
Subject: Re: [SMARTY] dots in variable names
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12657@lists.php.net to get a copy of this message
On Fri, Jun 03, 2005 at 01:45:44PM +0200, Atte André Jensen wrote: > Suppose I have the following in php: > > $array = array('some.test' => 'text', 'more' => > 'simple'); > $smarty->assign('array', $array); > > How do I then address the variable "some.test" in my template? you can't. stick to [a-zA-Z0-9_] for variablenames. > Opviously > {$array.some.test} doesn't work since this is addressing a sub-array... > > -- > peace, love & harmony > Atte > > http://www.atte.dk > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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