/** Add a flo to a rally as attending
  */
 public function addfloAction()
 {
     if ($this->_getParam('id', false)) {
         $this->view->jQuery()->addJavascriptFile($this->view->baseUrl() . '/js/JQuery/ui.datepicker.js', $type = 'text/javascript');
         $this->view->headLink()->appendStylesheet($this->view->baseUrl() . '/css/ui.datepicker.css');
         $form = new AddFloRallyForm();
         $this->view->form = $form;
         if ($this->_request->isPost()) {
             $formData = $this->_request->getPost();
             if ($form->isValid($formData)) {
                 $rallies = new RallyXFlo();
                 $rallyID = $this->_getParam('id');
                 $insertData = array('rallyID' => $rallyID, 'staffID' => $form->getValue('staffID'), 'dateFrom' => $form->getValue('dateFrom'), 'dateTo' => $form->getValue('dateTo'), 'created' => $this->getTimeForForms(), 'createdBy' => $this->getIdentityForForms());
                 $insert = $rallies->insert($insertData);
                 $this->_redirect(self::URL . 'rally/id/' . $rallyID);
                 $this->_flashMessenger->addMessage('Finds Liaison Officer added to a rally');
             } else {
                 $form->populate($formData);
             }
         }
     } else {
         throw new Pas_Exception_Param($this->_missingParameter);
     }
 }
 /** Add a flo to a rally as attending
  * @access public
  * @return void
  * @throws Pas_Exception_Param
  */
 public function addfloAction()
 {
     if ($this->getParam('id', false)) {
         $form = new AddFloRallyForm();
         $this->view->form = $form;
         if ($this->_request->isPost()) {
             if ($form->isValid($this->_request->getPost())) {
                 $rallies = new RallyXFlo();
                 $rallyID = $this->getParam('id');
                 $insertData = array('rallyID' => $rallyID, 'staffID' => $form->getValue('staffID'), 'dateFrom' => $form->getValue('dateFrom'), 'dateTo' => $form->getValue('dateTo'), 'created' => $this->getTimeForForms(), 'createdBy' => $this->getIdentityForForms());
                 $rallies->insert($insertData);
                 $this->redirect(self::URL . 'rally/id/' . $rallyID);
                 $this->getFlash()->addMessage('Finds Liaison Officer added to a rally');
             } else {
                 $form->populate($this->_request->getPost());
             }
         }
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }