Reading Configurations

Reading Configurations

Phalcon\Config is a component used to read configuration files of various formats (using adapters) into PHP objects for use in an application.

File Adapters

The adapters available are:

File Type Description
Ini Uses INI files to store settings. Internally the adapter uses the PHP function parse_ini_file.
Array Uses PHP multidimensional arrays to store settings. This adapter offers the best performance.

Native Arrays

The next example shows how to conv