Hello everyone. I'm trying to build a simple image gallery on cakephp, but it seems there's no tutorials about that in the internet.
The only one I found was this one ( http://articles.sitepoint.com/article/photo-gallery-cakephp-flickr ), but it's from 2007 and I can't seem to get it to work. I get as far as writing the view, but then I get "Undefined index: title" and "Undefined index: id". My code is: <-- app/views/gallery/index.ctp --> <div class="post"> <h2><?php echo $currset['title']?></h2> <p><?php echo $currset['description']?></p> </div> <ul> <?php foreach($sets as $item): ?> <li><?php echo $html->link($item['title'], '/gallery/' . $item['id']);?></li> <?php endforeach; ?> </ul> If I change $html-->link($item['title'] to $html->link($item[0]['title'] I can get the title, but nothing more. If I click on the link, nothing happens. My controller is: function index($id = null) { $photosets = $this->flickr->photosets_getList('<here is my NSID>'); $this->set('sets', $photosets); $currset = $id == null ? $photosets['photoset'][0]['id'] : $id; $this->set('currset', $this->flickr->photosets_getInfo($currset)); $this->set('thumbs', $this->flickr->photosets_getPhotos($currset)); } What am I doing wrong, or is there any better tutorial for building a image gallery? Thanks a lot! -- View this message in context: http://cakephp.19694.n2.nabble.com/Simple-Cakephp-image-gallery-tp5552915p5552915.html Sent from the CakePHP mailing list archive at Nabble.com. 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 [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
