Hello again all, Just when I think I have a decent grasp on this whole PHP/CakePHP thing, I create a function that returns twice as many array elements as it should.
1.2 Function is here: http://bin.cakephp.org/view/528917113 The view calls the action and just prints the results so that I can see how it works <?php $subList = $this->requestAction('/photoGalleryGen/' . $pageVar); ?> <p><?php pr($subList); ?></p> This returns an array of image filenames from a folder. But it returns all of the images 2x - it goes through x number and then starts again. Looking at the paste (http://bin.cakephp.org/view/528917113), if i mess up line 27 to be, say, $stats['mime'] === 'imeg', the correct number of files are returned in the array, but this was supposed to be a check to make sure only jpegs are returned. I appreciate anyone taking a look at it. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
