/** Display the index action for mapping flickr images * @access public * @return void */ public function indexAction() { if (!$this->getCache()->test('mappingflickr')) { $ph = $this->_api->getPhotosGeoData($start = 0, $limit = 50, $this->_flickr->userid); $this->getCache()->save($ph); } else { $ph = $this->getCache()->load('mappingflickr'); } $this->view->recent = $ph; $this->_response->setHeader('Content-Type', 'application/vnd.google-earth.kml+xml'); }