/** Add a vacancy
  * @access public
  * @return void
  */
 public function addAction()
 {
     $form = new VacancyForm();
     $form->submit->setLabel('Add a new job');
     $this->view->form = $form;
     if ($this->_request->isPost()) {
         $formData = $this->_request->getPost();
         if ($form->isValid($formData)) {
             $insertdata = array('title' => $form->getValue('title'), 'salary' => $form->getValue('salary'), 'specification' => $form->getValue('specification'), 'regionID' => $form->getValue('regionID'), 'status' => $form->getValue('status'), 'live' => $form->getValue('live'), 'expire' => $form->getValue('expire'), 'created' => $this->getTimeForForms(), 'createdBy' => $this->getIdentityForForms());
             $this->_vacancies->insert($insertdata);
             $this->getFlash()->addMessage('Vacancy details created: ' . $form->getValue('title'));
             $this->redirect('/users/vacancies');
         } else {
             $form->populate($this->_request->getPost());
         }
     }
 }