Ejemplo n.º 1
0
 public static function getParams()
 {
     $config_path = self::$blocks[self::$block_name]['path'] . str_replace('.php', '_config.json', self::$block_name);
     $res = [];
     if (file_exists($config_path)) {
         $config = file_get_contents($config_path);
         $res = json_decode($config, true);
     }
     self::$params = $res;
 }