Problem accessing array as Object property
| From: | Ilja Polivanovas | Date: | Mon, 08 Mar 2004 21:28:39 +0000 |
| Subject: | Problem accessing array as Object property | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-2196@lists.php.net to get a copy of this message | ||
Hi,
if i pass an object to the template using $smarty -> register_object(), with
a property which is an array, it is impossible to get it's values, either
via {object->property[0]} or via {foreach from=object->property}. Then i
have to return values from methods use an assign='variable', and then access
by $variable[0], what works fine.
Imho it's a small bug. isn't it?
Ilja Polivanovas
Assis Ltd.