Re: [SMARTY] Variables within Variables
| From: | messju mohr | Date: | Thu, 03 Jun 2004 16:39:12 +0000 |
| Subject: | Re: [SMARTY] Variables within Variables | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11427@lists.php.net to get a copy of this message | ||
On Thu, Jun 03, 2004 at 04:22:09PM +0100, Nunners wrote:
> (Sorry for the naff subject - that's the only way I could describe it.!)
>
>
>
> I'm trying to setup an application that uses various things, including
> Smarty, PEAR:DB and anything else I think I can fit in!!!!
>
>
>
> I've got to a point where I want to dynamically create a menu item, with two
> layers of information.
>
>
>
> The first is establishing the url of the link, which might be in the form
> of:
>
> /travel.php?id=$agent_id&password=$password
>
> Then, using a saved cookie (a reference to call customer details), also pass
> $agent_id and $password according to the customer's details (i.e. the
> cookie).
>
> Is that easily possible?
>
> As further reference/guide, the url is saved as a variable within the Smarty
> setup, and then appears in the template accordingly.
maybe you mean:
http://smarty.php.net/manual/en/language.syntax.quotes.php
or
http://smarty.php.net/manual/en/language.function.eval.php
???