RE: Nested Sections + Associative Array
| From: | Monte Ohrt | Date: | Mon, 05 Mar 2001 00:09:46 +0000 |
| Subject: | RE: Nested Sections + Associative Array | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-294@lists.php.net to get a copy of this message | ||
Isn't there an example very similar to this in the quickstart guide?
Jim Harlindong wrote:
> Would anyone please help in this?
> Desperate now and stuck :(
>
> > > -----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: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/