Re: [SMARTY] problem looping through complex array

From: Date: Tue, 28 Jun 2005 03:51:30 +0000
Subject: Re: [SMARTY] problem looping through complex array
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12741@lists.php.net to get a copy of this message
Hello again Maximillian! On 6/27/05, Maximillian Schwanekamp <lists@neptunewebworks.com> wrote: > Hi Matt, > ... > but on first look I would say you could just > restructure the array and template loop, something like the below. ... > > 3 => Array (6) > project_id => 1 > companyname => Matt's Huge Company > projectname => Project 1 > description => blah blah > datecreated => Jun 27th > > dirs => Array (2) > 0 => Array (2) > name => test > files => Array (4) > 0 => Array (4) > file_id => 99 > filename => foo.txt > description => blah blah blah > datecreated => 1119914453 > 1 => Array (4) > file_id => 99 > filename => bar.txt > description => blah blah blah > datecreated => 1119914453 > 1 => Array (2) > name => test2 > files => Array (0) ... > Perfect! I knew it was something with the way I was structuring my array, but I just couldn't quite put my finger on what to change. I have it working perfectly now. Thanks so much for your help! -- Matt Warden Miami University Oxford, OH, USA http://mattwarden.com This email proudly and graciously contributes to entropy.

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