AW: [SMARTY] Question concerning asso. arrays

From: Date: Mon, 10 Mar 2003 12:38:35 +0000
Subject: AW: [SMARTY] Question concerning asso. arrays
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8526@lists.php.net to get a copy of this message
Hehe, I expected this answer :) Well actually cause I use these indexes also as position in my database for building selects, inserts etc. That's why I need eg. array index "table1.id" etc. This is a very convient way to dynamically update and select fields from the database. For sure I can do a workaround ( I did in fact ) but I really would like to get rid off this. Thnx, dodger -----Ursprüngliche Nachricht----- Von: Juzan Jean-Michel [mailto:jmj@ecreasol.ch] Gesendet: Montag, 10. März 2003 13:15 An: Smarty General Betreff: Re: [SMARTY] Question concerning asso. arrays Le lun 10/03/2003 à 11:29, Lars Jankowfsky a écrit : > Heyho folks, > > I would be really happy if someone could give me a hint. > > I do have a array which has values : > > "value.name" => "one", > "value.city" => "two"... I mean it is a very bad idea to put dot in the name Why you want use this syntax ? > > etc. > > Now - when I try to access this from within smarty e.g. with > $list->value.name - this for sure doesn't work ( as smarty expects that the > "." signalizes a sub array) > Any Idea how I could get the value from my array ? - without changing my > keys :) > > Thnx, > > dodger > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Jean-Michel Juzan jmjuzan@ecreasol.ch Direction Informations & Technologies eCreaSol - NetWork Creative Solutions SARL - http://www.ecreasol.ch/ PGP public keys server : http://www.keyserver.net

« previous php.smarty.general (#8526) next »