Flickr CakePHP Plugin: Galleriffic Demo

Demo Home | Basic | Colorbox | Galleriffic | Photostack | Blog Post

Controller:

public function galleriffic() {
	$params = array(
		'tags' => 'Public',
		'per_page' => 20,
	);
	$photos = $this->Flickr->flickrRequest($params);
	$this->set('photos', $photos);
}
		

Helper:

echo $this->Flickr->getPhotos(
	$photos,
	array('type' => 'li'),
	array('class' => 'thumb', 'name' => 'flickr_id', 'title' => 'flickr_datetaken'),
	array('alt' => 'flickr_title'),
	array(),
	array(
		'type' => 'div',
		'location' => 'after',
		'class' => 'caption',
		'caption' => 'flickr_title'
	)
);