Esempio n. 1
0
 public function checkempforprojectsAction()
 {
     if ($this->getRequest()->getPost()) {
         $projectId = $this->_request->getParam('projectId');
         $projectModel = new Timemanagement_Model_Projects();
         $checkISAssigned = $projectModel->chkProjAssigned($projectId);
         if ($checkISAssigned > 0) {
             $this->_helper->json(array('exists' => 'yes'));
         } else {
             $this->_helper->json(array('exists' => 'no'));
         }
     }
 }