RE: Nested Sections + Associative Array

From: Date: Sun, 04 Mar 2001 05:01:34 +0000
Subject: RE: Nested Sections + Associative Array
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-288@lists.php.net to get a copy of this message
I have tried all possible combinations that I can think of... still can't make it right :( Any hint? Should I change the array structure? should I change the tpl ? > -----Original Message----- > From: Jim Harlindong [mailto:jimmy@harlindong.com] > Sent: Sunday, 4 March 2001 2:47 AM > To: smarty@lists.ispi.net > Subject: [smarty] Nested Sections + Associative Array > > > Hi I give up trying to combine nested sections and associative array > > Here's my data : > > $branches[] = array( > 'name' => $row->name, > 'address' => $postal, > 'location' => $location, > 'contacts' => array( array('type' => 'Phone', > 'number' => > '123123' ), array ('type' => 'Phone', 'number' => > '342232') ) > > > ); > > > How can I do a nested section for this ? or should I do it differently ?? > > > > --- > You are currently subscribed to smarty as: jimmy@harlindong.com > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at øÌ¹¨ƒ > aJŠ¢¿–wÑ8ohttp://www.phpinsider.com/php/code/Smarty/ > >

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