View Single Post
Old 01-08-2009, 12:54 PM   #25 (permalink)
awuehr
The Contributor
 
awuehr's Avatar
 
Join Date: Oct 2008
Location: Nuremberg, Germany
Posts: 26
Thanks: 3
awuehr is on a distinguished road
Default

Your solution looks quite good. :)

About the 3d-array-problem: Even in your code the template itself does not decide how many cols to display. You're doing this in your PHP script. So IMO there is no difference between telling patTemplate to start a new row or building an array with the right number of cols. In both cases there is no logic neither in patTemplate Templates nor in PHPTAL Templates. They just display, what you tell them via PHP.
__________________
Send a message via ICQ to awuehr Send a message via Skype™ to awuehr
awuehr is offline  
Reply With Quote