webCOMAND

router::config()

Load a configuration file and return the corresponding associative array.

Prototype

array config(string $name)

Parameters

  • name - Name of the configuration file, without the config folder path or the ".php" extension.

Return

An associative array of configuration options defined in the config file.

Example

$router = new \io_comand_mvc\router();
$config = $router->config('app');
$config = $config['property'];