dots in variable names
| From: | Atte André Jensen | Date: | Fri, 03 Jun 2005 11:45:44 +0000 |
| Subject: | dots in variable names | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12656@lists.php.net to get a copy of this message | ||
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? Opviously {$array.some.test} doesn't work since this is addressing a sub-array...
--
peace, love & harmony
Atte
http://www.atte.dk