public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::ci_get_instance();
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     if (!is_a($LANG, 'MX_Lang')) {
         $LANG = new MX_Lang();
     }
     if (!is_a($CFG, 'MX_Config')) {
         $CFG = new MX_Config();
     }
 }
function &ci_get_instance()
{
    return CI_Controller::ci_get_instance();
}
Exemple #3
0
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::ci_get_instance();
 }