/** * @access public * @return void */ public function clientToJobTrainingAction() { if ($this->getRequest()->isPost()) { $this->_mapper->setData($this->getRequest()->getPost()); $return = $this->_mapper->clientToJobTraining(); $message = $this->_mapper->getMessage()->toArray(); $result = array('status' => (bool) $return, 'id' => $return, 'description' => $message); } else { $message = new App_Message(); $message->addMessage($this->_config->messages->warning, App_Message::WARNING); $result = array('status' => false, 'description' => $message->toArray()); } $this->_helper->json($result); }