Re: [SMARTY] variable inside a variable or nested variables
| From: | messju mohr | Date: | Wed, 21 Apr 2004 16:55:07 +0000 |
| Subject: | Re: [SMARTY] variable inside a variable or nested variables | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11288@lists.php.net to get a copy of this message | ||
On Wed, Apr 21, 2004 at 07:47:24PM +0000, Zilvinas Saltys wrote:
> On Wed, 21 Apr 2004 19:29:29 +0300
> David Förster <david@dfoerster.de> wrote:
>
> > On Wed, 21 Apr 2004 19:20:10 +0000
> > Zilvinas Saltys <araki@esu.lt> wrote:
> >
> > > So the problem appears when i try to use {${$row}.header}... This does not work.
> > > Is there a way to access my arrays en[] ru[] from this loop?#
> >
> > Yes, the syntax is $row.header
> > (see
> > http://smarty.php.net/manual/en/language.variables.php)
>
> Hello,
>
> I was asking about nested variables and you are showing me how to access an array.. $row is not
> an array.. $row might be something like en ru lt...
>
> And i want to use those values to reach my arrays that i setted.
unlike in php there are no variable variables in smarty. use hash-arrays instead.
> Bye