Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 /**
  * @return Model_Mapper_FlickrSearch 
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }