Re: [SMARTY-DEV] Array access
| From: | messju mohr | Date: | Fri, 30 Jan 2004 12:10:19 +0000 |
| Subject: | Re: [SMARTY-DEV] Array access | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2088@lists.php.net to get a copy of this message | ||
On Fri, Jan 30, 2004 at 11:47:54AM +0000, Marcus Bointon wrote:
> I'm trying to access a property of an associative array where the key is
> given by an object property, like this:
>
> {$options.$object->option}
{assign var=key value=$object->option}{$options.$key}
greetings
messju
> It seems that this is not allowed. Is it because there is ambiguity and it's
> trying to do the equivalent of
>
> {{$options.$object}->option}
>
> Is there some way I can clarify the order, like:
>
> {$options.{$object->option}}
>
> Or is the problem deeper?
>
> Marcus