Problem accessing array as Object property
"Ilja Polivanovas" <[email protected]>
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
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.
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php