/** * Show a list of active, expired and future career vacancies in the admin system * * @return void */ public function indexAction() { $this->view->currentPage = 'jobVacancies'; $careers = new Datasource_Cms_Careers(); $activeCareerList = $careers->getActive(); $expiredCareerList = $careers->getExpired(); $futureCareerList = $careers->getFuture(); $this->view->activeCareerList = $this->view->partialLoop('partials/careers-vacancyrow.phtml', $activeCareerList); $this->view->expiredCareerList = $this->view->partialLoop('partials/careers-vacancyrow.phtml', $expiredCareerList); $this->view->futureCareerList = $this->view->partialLoop('partials/careers-vacancyrow.phtml', $futureCareerList); $passThrough = $this->_helper->getHelper('FlashMessenger')->getMessages(); if (count($passThrough) > 0) { if (isset($passThrough[0]['saved'])) { if ($passThrough[0]['saved'] == true) { $this->view->saved = true; } } if (isset($passThrough[0]['errorMessage'])) { $this->view->errorMessage = $passThrough[0]['errorMessage']; } if (isset($passThrough[0]['deleted'])) { if ($passThrough[0]['deleted'] == true) { $this->view->deleted = true; } } } }