Example #1
0
 public function photographyAction()
 {
     $service = new Service_Flickr();
     $service->setPage($this->_request->getParam('page'));
     $photos = $service->fetchPhotosFromUsername('rkeplin');
     $this->view->photos = $photos;
 }
Example #2
0
 public function flickr($num_photos)
 {
     $service = new Service_Flickr();
     $service->setPage(1);
     $service->setPerPage($num_photos);
     $photos = $service->fetchPhotosFromUsername('rkeplin');
     $string = '';
     foreach ($photos as $photo) {
         $string .= '<a title="photography by rob" href="/photography">' . $photo->printImage('s') . '</a>' . "\r\n";
     }
     return $string;
 }