Example #1
0
 public function clientinfoAction()
 {
     $this->_helper->layout()->disableLayout();
     $this->_helper->ViewRenderer->setScriptAction('client-info');
     //_event_id, _operator_id,_item_id
     if (false === ($client_id = $this->_getParam('param1', false))) {
         throw new Exception('Tampered URI');
     }
     //echo $client_id;
     $client = new Gyuser_Model_User();
     $client->setId($client_id);
     $mapper = new Gyuser_Model_UserDataMapper();
     $this->view->clientInfo = $mapper->ClientDetailsById($client);
     $model = new Gyuser_Model_CRMTasks();
     $this->view->clientId = $client_id;
     $this->view->clientHistory = $model->getClientHistory($client_id);
 }