public function listAction() { if ($this->_isUserAllowed(null, null)) { $domain = new Persons_Domain_Person(); $page = $this->_hasParam('page') ? $this->_getParam('page') : 1; $params = array('page' => $page); $this->view->filter_keyword = ''; if (trim($this->_getParam('filter-keyword', '')) != '') { $params['filter-keyword'] = $this->_getParam('filter-keyword'); $this->view->filter_keyword = $params['filter-keyword']; } $paginator = $this->_hasParam('paginator') ? filter_var($this->_getParam('paginator'), FILTER_VALIDATE_BOOLEAN) : true; $persons = $domain->getAll(Zend_Auth::getInstance()->getIdentity()->appaccount_id, 'name', $paginator, $params); $this->view->assign('persons', $persons); } else { $this->_redirectLogin(); } }