webCOMAND

controller::config()

Load a configuration file from the config/ folder.

Prototype

array config(string $name)

Example

// the default controller method
public function web__index() {
    // load the configuration from config/names.php
    $storage = $this->config('storage');
    echo('Storage size is: ' . $storage['size']);
}