Extra Light PHP Framework

Config

This class is loaded automatically by the system

Content

Create a configuration file

Example:

1. Create a file called foo.php in application/config

2. In application/config/foo.php write:

$config['rows_per_page'] = 5; $config['default_title'] = 'Foo bar';

Load a file

$this->config->load_file('foo'); instance($elf); $config_foo = $elf->config['foo']; echo $config_foo['rows_per_page'];