public function indexAction() { if ($this->getRequest()->isPost()) { $post = $this->getRequest()->getPost(); $action = $post['action']; switch ($action) { case 'delete': foreach ($post['partners'] as $index => $id) { $this->_partner->find($id)->current()->delete(); } break; case 'filter': $this->filter->partner = $post['filter']; break; case 'reset': $this->filter->unsetAll(); break; } } $partners = $this->_partner->fetchAllWithTranslationStatus($this->filter->partner, 1); $partners_paginator = Zend_Paginator::factory($partners); $this->view->partners = $partners_paginator; $messages = $this->_helper->flashMessenger->getMessages(); $this->view->messages = $messages; $this->view->filter = $this->filter->partner; }