/** * */ public function printAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); $id = $this->_getParam('id'); $clients = $this->_getParam('clients'); $clients = explode(',', $clients); $this->_mapper->savePrint($id, $clients); $mapperClient = new Client_Model_Mapper_Client(); $dataClient = array(); foreach ($clients as $client) { $dataClient[] = $mapperClient->detailClient($client); } App_General_EvidenceCard::generate($dataClient); }
/** * */ public function evidenceAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); $id = $this->_getParam('id'); $client = $this->_mapper->detailClient($id); if (!empty($client->id_action_plan)) { App_General_EvidenceCard::generate($client); } throw new Exception("Kliente ne'e seidauk iha Kazu Akonsellamentu"); }