how to acces array keys that start with '#'
[email protected] (Jörg Hermsdorf) Wed, 4 Apr 2007 08:13:40 -0700 (PDT)
| Newsgroups | php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
The drupal programmers use a lot array keys that start with '#' (e.g. $fiel=
d['#value'], $field['#weight'], $field['#description'], ...).=0AHow can I a=
ccess such array elements from within a smarty template?=0A=0AIf I use {$fi=
eld.#value} I get a smarty syntax error: unrecognized tag.=0A=0AUsing {$fie=
ld.'#value'} or {$field.[#value]} or {$field.['#value']} doesn't work eithe=
r. Do I have to escape the # somehow?=0A=0A=0A=0A=0A=0A=0A=09=0A=09=09=0A__=
_________________________________________________________ =0ADer fr=FChe Vo=
gel f=E4ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.=
yahoo.de