Re: [SMARTY] embedding variables in assign
| From: | Monte Ohrt | Date: | Wed, 12 Feb 2003 17:35:23 +0000 |
| Subject: | Re: [SMARTY] embedding variables in assign | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7695@lists.php.net to get a copy of this message | ||
I don't think 2.3.1 will support that, it will only support a simple
variable name such as " $blah "
On Wed, 2003-02-12 at 11:31, Travis Low wrote:
> 2.3.1.
>
> There was a typo in my template that caused the error, but it still does not
> display correctly. I see only ".id". Is this expected for 2.3.1?
>
> Travis
>
> Monte Ohrt wrote:
> > What version of Smarty? Use the latest one, that syntax should work as
> > expected.
> >
> > On Wed, 2003-02-12 at 11:19, Travis Low wrote:
> >
> >>Is it possible to embed variables within an assignment? For example:
> >>
> >>{section name=item loop=$items}
> >>{assign var=s value="View information for $items[item].id"}
> >>{/section}
> >>
> >>I keep getting a parse error, so I'm wondering if there is any magic synatax I
> >>can use.
> >>
> >>
> >>--
> >>Travis Low
> >><mailto:travis@dawnstar.org>
> >><http://dawnstar.org/travis>
>
> --
> Travis Low
> <mailto:travis@dawnstar.org>
> <http://dawnstar.org/travis>
--
Monte Ohrt <monte@ispi.net>