/** Get a list of interesting flickr images attributed to archaeology * The woeid 23424975 = United Kingdom * @access public * @return void */ public function interestingAction() { $page = $this->getPage(); $key = md5('interesting' . $page); if (!$this->getCache()->test($key)) { $flickr = $this->_api->getArchaeology('archaeology', 20, $page, 23424975); $this->getCache()->save($flickr); } else { $flickr = $this->getCache()->load($key); } $pagination = array('page' => $page, 'total_results' => (int) $flickr->total); $paginator = Zend_Paginator::factory($pagination['total_results']); $paginator->setCurrentPageNumber($page)->setPageRange(10)->setCache($this->getCache()); $paginator->setItemCountPerPage(20); $this->view->paginator = $paginator; $this->view->photos = $flickr; }