Ejemplo n.º 1
0
 public function indexAction()
 {
     $this->view->pagerName = "contact-page";
     $this->view->letters = $this->clientService->getContactLetters();
     $currentLetter = ifset($this->_getAllParams(), $this->view->pagerName, ifset($this->view->letters, 0, 'A'));
     $this->view->contacts = $this->clientService->getContacts(null, array('firstname like ' => $currentLetter . '%'), 'firstname asc');
     $this->renderView('contact/index.php');
 }