RE: [SMARTY] Getting a value from an array using a variable as reference
| From: | Martin Kloss | Date: | Tue, 16 Sep 2003 10:53:33 +0000 |
| Subject: | RE: [SMARTY] Getting a value from an array using a variable as reference | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10224@lists.php.net to get a copy of this message | ||
At 11:58 16.09.2003 +0200, you wrote:
Yesterday I wrote this answer to a similar question, I hope this helps you. {assign var=tmpKey value=$MenuItem.ThisStep} Key: {$tmpKey} <- (ke1) Result: {$SessionVars.$tmpKey.grp_id} <- (value)Hi Javier, thanks, but like I said, the solution with an extra variable is an obvious but stupid solution. That's the way I have it know, but I would like to avoid having to assign a variable. Martin. Martin Kloss martin.kloss@triquart.de Technische Direktion ************************ Triquart Neue Medien Bellealliancestr.17 20259 Hamburg Germany Tel.+49 (40)432 923-0 Fax +49 (40)432 923-23 www.triquart.de www.triquart-humor.de ************************* "Lingo objektorientiert" Das Buch zum Autor jetzt bestellen unter: http://www.amazon.de/exec/obidos/ASIN/3898422194/lingmmugd