Ejemplo n.º 1
0
 /**
  * This clears the language cache
  */
 public function clearcacheJsonAction()
 {
     $languageManager = new RM_Language_Manager();
     $languageManager->clearCache();
     return array('data' => array('success' => true));
 }
Ejemplo n.º 2
0
 public function enableJsonAction()
 {
     $ids = $this->_getParam('ids', array());
     $model = new RM_Modules();
     $unresolvedDependencies = array();
     foreach ($ids as $id) {
         $row = $model->find($id)->current();
         $result = $model->enable($row);
     }
     $languageManager = new RM_Language_Manager();
     $languageManager->clearCache();
     // clear the css cache
     $model->clearCSSCache();
     return array('data' => array('success' => true, 'errors' => $unresolvedDependencies));
 }