You are here: Re: [SMARTY] problem looping through complex array « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] problem looping through complex array

Posted by Matt Warden on 06/28/05 06:51

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация