|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Community Guest
Posts: n/a
|
Build a Photo Gallery Using CakePHP and Flickr
Notice: This is a discussion thread for comments about the SitePoint article, Build a Photo Gallery Using CakePHP and Flickr.
__________ Great tutorial, but I wish there was a finished example to see at the end. Am I missing something? |
|
|
|
#2 |
|
SitePoint Community Guest
Posts: n/a
|
dude... cakephp suxs , it doesnt have aported anything good to PHP, so please just stop making articles about cakephp,
you should talk about zend or codeigniter thanks |
|
|
|
#3 |
|
SitePoint Member
Join Date: Apr 2004
Location: india
Posts: 1
|
Great Article!.
Even google has come up with an API with the same structural and functional properties |
|
|
|
|
|
#4 |
|
SitePoint Community Guest
Posts: n/a
|
very informative article, thanks
i look forward to see more articles about Cake from sitepoint. |
|
|
|
#5 |
|
SitePoint Community Guest
Posts: n/a
|
Nice article! CakePHP is a great framework, looking forward to your next tutorial =) Thanks!
|
|
|
|
#6 |
|
SitePoint Community Guest
Posts: n/a
|
Thanks for the great article. That's some really simple but slick Javascript code. Very nice!
CakePHP rocks! |
|
|
|
#7 |
|
SitePoint Community Guest
Posts: n/a
|
Hi there, could you give any working examples of this Flickr/Cake web app? I'd love to see one in action... thanks.
|
|
|
|
#8 |
|
SitePoint Community Guest
Posts: n/a
|
super cool! This will be an awesome addition to my image gallery script...have an option to setup a gallery by pulling in a flickr feed instead of uploading images... or maybe in addition to.
thanks for posting! |
|
|
|
#9 |
|
SitePoint Community Guest
Posts: n/a
|
i cant make it work :(
kilinkis |
|
|
|
#10 |
|
SitePoint Member
Join Date: Jun 2007
Posts: 15
|
I couldn't get this to work either. I don't think the tutorial is very clear. I appreciate all the effort in the tutorial but at the end of the day i've spent hours following something that doesen't work
|
|
|
|
|
|
#12 |
|
SitePoint Community Guest
Posts: n/a
|
It took me while to get this to work, but I did get it working. Maybe, that's because I'm new to CakePHP.
The line that deals with routing needs to be updated because the syntax has changed from: $Route->connect('/gallery/*', array('controller' => 'gallery', 'action'=>'index')); to Router::connect('/gallery/*', array('controller' => 'gallery', 'action'=>'index')); Other than that. I think this was an awesome tutorial. The CakeFlickr component for PHPFlickr is genius. I'm definitely going to use it for other projects. |
|
|
|
#13 |
|
SitePoint Community Guest
Posts: n/a
|
nice! i will definitely use this, thanks
|
|
|
|
#14 |
|
SitePoint Community Guest
Posts: n/a
|
This tutorial outputs the thumbnails in an unordered list, for those who wish to display the images in a table here is some code you can modify to suit your needs:
$total_records = count($thumbs['photo']); // the number of records in your result set $num_cols = 5; // the number of columns $num_rows = ceil($total_records / $num_cols); // the number of rows $num = 0; // don't change this value, this is the first number of each record inside a record set echo "<table align=\"center\" cellpadding=\"5\" cellspacing=\"10\">\n"; // next the loop for the table rows for ($rows = 0; $rows < $num_rows; $rows++) { echo "<tr>\n"; // this is the loop for the table columns for ($cols = 0; $cols < $num_cols; $cols++) { if ($num < $total_records) { // show records if available (reduce by one because the first record is no. "0" (zero) // first create variables with the values of the current record $href = $flickr->buildPhotoURL($thumbs['photo'][$num], 'medium'); $thum = $flickr->buildPhotoURL($thumbs['photo'][$num], 'thumbnail'); $title = $thumbs['photo'][$num]['title']; echo "<td><a href=\"".$href."\"title=\"".$title."\" rel=\"lightbox[]\"><img src=\"".$thum."\"></a><td>\n"; } else { // show an empty cell echo "<td> </td>\n"; } $num++; // raise the number by one for the next record } echo "</tr>\n"; // there are no more cols in this row, close the table row tag } echo "</table>\n"; // end of the region = closing tag for the table element ?> |
|
|
|
#15 |
|
SitePoint Community Guest
Posts: n/a
|
Hi,
I am new to all this and can't get it working.. I followed all the steps above.. am getting the following error.. please help: Missing Method in GalleryController You are seeing this error because the action index is not defined in controller GalleryController If you want to customize this error message, create app/views/errors/missing_action.thtml. Fatal: Confirm you have created the GalleryController::index() in file : app/controllers/gallery_controller.php <?php class GalleryController extends AppController { function index() { } } ?> |
|
|
|
#16 |
|
SitePoint Community Guest
Posts: n/a
|
Note that the Flickr Component linked to above needs to be updated to no longer use the vender() function. That line should be replaced with:
App::import('Vendor', 'phpFlickr', array('file' => 'phpflickr'.DS.'phpFlickr'.DS.'phpFlickr.php')); |
|
|
|
#17 |
|
SitePoint Member
Join Date: Sep 2009
Location: Usa
Posts: 0
|
This has been occurring in the past 2 or 3 weeks. With Internet Explorer (7) on, after awhile its memory usage (as seen in Windows Task Manager) just gets larger and larger until it finally locks up, at which time it's not even possible to view Task Manager any more in order to end its process or shut the application. I have to force a shutdown to start using the computer again.
no fax payday loans What is going on here? I didn't seem to have this problem before. Not sure how to fix it. payday loan online Any info or help appreciated. Thanks payday loans |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 16:28.







Linear Mode
