Example #1
0
 function postflight($route, $adapter)
 {
     $addon = WAddon::get('install.' . JOOBI_FRAMEWORK);
     $lcAppName = strtolower("japps");
     $addon->setExtensionInfo($lcAppName . '.application');
     $addon->refreshMenus($lcAppName);
 }
Example #2
0
 /**
  * we will create the menus and submenus the joobi way
  */
 private function _createMenus()
 {
     try {
         $this->_joobiInfoLog("_createMenus()");
         $addon = WAddon::get('install.' . JOOBI_FRAMEWORK);
         $lcAppName = strtolower($this->appName);
         if ($this->cmsName == 'joomla') {
             $this->_joobiInfoLog("insoide if loop of _createMenus()");
             $addon->setExtensionInfo($lcAppName . '.application');
             $addon->refreshMenus($lcAppName);
         }
         //endif
     } catch (Exception $e) {
         throw new Exception("Problem while crearting menus");
     }
     //endcatch
 }