public function indexAction()
 {
     $pageNumber = $this->_getParam('page');
     $currentPolling = $this->_getParam('currentPolling');
     if ($this->getRequest()->isPost()) {
         $post = $this->getRequest()->getPost();
         if (!empty($post['delete'])) {
             foreach ($post['delete'] as $key => $id) {
                 $this->tbl_polling->find($id)->current()->delete();
             }
         }
     }
     if (null == $currentPolling) {
         $active_polling = $this->tbl_polling->getActivePolling();
         if (sizeof($active_polling)) {
             $currentPolling = $active_polling->polling_id;
         }
     }
     if (null != $currentPolling) {
         $result = $this->tbl_answer->getAllWithResult($currentPolling);
         $this->view->currentPollingResult = $result->toArray();
     }
     $polling = $this->tbl_polling->getAll();
     $paginator = Zend_Paginator::factory($polling);
     $paginator->setCurrentPageNumber($pageNumber);
     $this->view->paginator = $paginator;
 }