config.php
397 Bytes
<?php
namespace addons\fastflow\model;
class config
{
public static function getConfig($key)
{
//halt(dirname(__DIR__) . DIRECTORY_SEPARATOR);
$file = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'config.php';
if (!file_exists($file)) {
return -1;
}
$config = require($file);
return $config[$key] ?? null;
}
}