@jeremy I'll kick it around a bit more sometime later today. I tried a few variations of your suggestion and although I think it *might* work as well, I only created a whole different set of issues. I don't have the patience for it right now :)
On a side note, here are a couple really easy ones for ya': (perhaps I should ask when I'm a bit more coherent because I'm sure the answer is obvious in the documentation) Anyhow, Router::url -> Is set to accept /pages/my-page in lieu of /pages/myPage. Clicking next in pagination directs you back to /pages/myPage. I have the Router:: set up incorrectly don't I? Even easier yet .... where should i be looking to find the answer on defining a path relative to the App? I was looking through the Folder Class but not seeing what I was looking for. I'm defining them now locally C:/foo/bar/webroot/img/temp/some_image.jpg. Obviously this will present an issue when uploading to remote host. I came across the answer to this some time ago but for the life of me I can't remember where. I know it was something easy and I'm sure I'll feel like an idiot when I find the answer. I'll let you know how I make out with the nested loop. - Ed On Sat, May 15, 2010 at 6:20 AM, Jeremy Burns <jeremybu...@me.com> wrote: > So could you do a nested loop that: > > > 1. Steps through your images until they are are processed > 1. foreach $num_of_cols (or remaining images if less) adds a value > to an array (the new value being your td contents) > 2. Adds blank cells if this row is only half full because the images > are processed > 3. echo $this->Html->tableCells( array( array( $your_td_array ) ) ); > > > I haven't tried this, but it *might* work? > > Jeremy Burns > jeremybu...@me.com <jeremybu...@mac.com> > > > On 15 May 2010, at 10:34, Ed Propsner wrote: > > $num_of_cols = 6; > > echo > $html->tag('table', null, array( > 'cellspacing' => 0, > 'cellpadding' => 5, > 'border' => 0 > ) > ) > .$html->tag('tr'); > > foreach($photos as $photo) > { > echo ($i!= 0 && $i%$num_of_cols == 0)?'</tr><tr>':''; > echo $html->tag('td', null, array( > 'valign' => 'top' > ) > ) > .$html->tag('a href="/photos/view/'.$photos[$j++]['Photo']['id'].'"') > .$html->tag('img', null, array( > 'src' => Router::url(array( > 'controller' => 'photos', > 'action' => 'displayPhotos/'.$photos[$k++]['Photo']['id'] > ) > ), > 'height' => 90 > ) > ) > .$html->tag('/a') > .$html->tag('/td'); > $i++; > } > > echo $html->tag('/tr') > .$html->tag('/table'); > > > Check out the new CakePHP Questions site http://cakeqs.org and help > others with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en