Beispiel #1
0
 public function indexAction()
 {
     $list = $this->contactMapper->getAllIds();
     $contactsList = array();
     reset($list);
     foreach ($list as $id) {
         $thisContact = $this->contactMapper->findById($id);
         $contactsList[$id] = array('name' => $thisContact->GetName(), 'editLink' => '/register/contact/edit/?id=' . $id, 'linkDetail' => '/register/contact/detail/?id=' . $id, 'type' => C3op_Register_ContactTypes::TitleForType($thisContact->GetType()));
     }
     $this->view->contactsList = $contactsList;
     $this->view->createContactLink = "/register/contact/create";
 }