function dodajAction()
 {
     $post = new Zend_Filter_Input($_POST);
     $respondent = new Respondenci();
     $another = trim($post->getRaw('email'));
     $data = array('e_mail' => $another);
     try {
         $id = $respondent->insert($data);
         $this->_redirect('/respondenci/');
     } catch (Respondenci_Exception $e) {
         $this->_forward('respondenci', 'index', array('insertionError' => $e->getMessage()));
     }
 }
 public function mailAction()
 {
     $respondent = new Respondenci();
     $post = new Zend_Filter_Input($_POST);
     if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
         if ($post->getRaw('akcja') == 'dodaj') {
             $data = array('e_mail' => $post->getRaw('email'));
             try {
                 $id = $respondent->insert($data);
             } catch (Respondenci_Exception $e) {
                 //dodaj obslugę błędów
             }
         } else {
             $db = $respondent->getAdapter();
             $where = $db->quoteInto('e_mail = ?', $post->getRaw('email'));
             try {
                 $respondent->delete($where);
             } catch (Respondenci_Exception $e) {
                 //dodaj obslugę błędów
             }
         }
     }
     $this->_redirect('/');
 }