public function editAction()
 {
     $id = (int) $this->getRequest()->getParam('id');
     $form = new Admin_Form_Careers_Edit();
     $model = new App_Model_Careers();
     if ($this->getRequest()->isPost()) {
         if ($form->isValid($this->getRequest()->getPost())) {
             $model->updateCareers($form->getValues(), $id);
             $this->_helper->flashMessenger->addMessage('Edited');
             return $this->_redirect('/admin/careers');
         }
     }
     if ($id > 0) {
         $careers = $model->fetchRow('id=' . $id);
         $form->populate($careers->toArray());
     }
     $this->view->form = $form;
 }
 public function applyAction()
 {
     $id = $this->getRequest()->getParam('job');
     $job = new App_Model_Careers();
     $this->view->job = $job->fetchRow(array("job_id = '" . $id . "'"));
 }