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, or FALSE if the config could not be loaded.

Example

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

Related

controller::config(), loader::load_config()