/** Edit a coroner
  * @access public
  * @return void
  */
 public function editAction()
 {
     if ($this->getParam('id', false)) {
         $form = new CoronerForm();
         $form->submit->setLabel('Save');
         $this->view->form = $form;
         if ($this->getRequest()->isPost() && $form->isValid($this->_request->getPost())) {
             if ($form->isValid($form->getValues())) {
                 $insert = $this->_coroners->updateCoroner($form->getValues(), $this->getParam('id'));
                 $this->getFlash()->addMessage($form->getValue('firstname') . ' ' . $form->getValue('lastname') . '\'s information updated!');
                 $this->redirect($this->_redirectUrl);
             } else {
                 $form->populate($form->getValues());
             }
         } else {
             $id = (int) $this->_request->getParam('id', 0);
             if ($id > 0) {
                 $form->populate($this->_coroners->fetchRow('id =' . $id)->toArray());
             }
         }
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }