[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-dev
Subject:    [SMARTY-DEV] Problem accessing array as Object property
From:       212.59.26.243
Date:       2004-03-08 21:28:39
Message-ID: 20040308212838.19543.qmail () pb1 ! pair ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic