Exemple #1
0
 public static function getControllersMapping()
 {
     if (self::$mapping !== null) {
         return self::$mapping;
     }
     self::$mapping = array();
     $map_file = 'system/config/remap.php';
     $map_function = 'remap_controllers';
     if (!cmsCore::includeFile($map_file)) {
         return false;
     }
     if (!function_exists($map_function)) {
         return false;
     }
     self::$mapping = call_user_func($map_function);
     if (!is_array(self::$mapping)) {
         return false;
     }
     return self::$mapping;
 }