Example #1
0
 public function disableinitiativeAction()
 {
     $id = Zend_Filter::filterStatic($this->getRequest()->getParam('id'), 'StripTags');
     if (is_numeric($id)) {
         try {
             $init = new InitiativeModel($id);
             $init->disable();
         } catch (Exception $e) {
             $this->view->error = $e->getMessage();
             Globals::getLog()->err('ADMIN disable initiative error: ' . $this->view->error);
             $this->render('error-xhr');
         }
     }
 }