public function indexAction() { /* Initialize action controller here */ if ($this->getRequest()->isGet()) { $data = $this->_getAllParams(); if ($this->_form->isValid($data)) { $this->view->data = $this->_mapper->getSearchImage(); } } $this->view->form = $this->_form; }
/** * @return Model_Mapper_FlickrSearch */ public static function getInstance() { if (!self::$_instance) { self::$_instance = new self(); } return self::$_instance; }