public function indexAction()
 {
     // get all the contacts for the currently logged in user's company.
     $contact = $this->clientService->getContact(za()->getUser()->contactid);
     if (!$contact) {
         return;
     }
     $client = $this->clientService->getClient($contact->clientid);
     $totalCount = $this->clientService->getContactCount(array('clientid=' => $client->id));
     $this->view->pagerName = 'pager';
     $currentPage = ifset($this->_getAllParams(), $this->view->pagerName, 1);
     $this->view->totalCount = $totalCount;
     $this->view->listSize = za()->getConfig('project_list_size');
     $this->view->contacts = $this->clientService->getContacts($client, array(), 'firstname asc', $currentPage, $this->view->listSize);
     $this->renderView('contact/index.php');
 }