| Status | Draft |
|---|---|
| Todo | How config entries merge, Proof read |
Information on retrieving and setting configuration items can be found on the config page.
Configuration files contain an array named $config. Keys of this array are the actual configuration items e.g.
Example
$config['site_domain'] = 'localhost/';
The file structure of config files follows Kohana's file structure.
application > modules > system
Meaning that configuration files in the application directory take precedence over those in modules take precedence over those in the system directory. The one exception is config.php which is hardcoded into the application/config directory and cannot be moved elsewhere.
Config.php is hardcoded into Kohana, meaning it has to be in the application/config directory.
/*
* Options:
* site_domain - domain and installation directory
* site_protocol - protocol used to access the site, usually HTTP
* index_page - name of the front controller, can be removed with URL rewriting
* url_suffix - an extension that will be added to all generated URLs
* allow_config_set - enable or disable setting of Config items
* global_xss_filtering - enable or disable XSS attack filtering on all user input
* render_stats - render the statistics information in the final page output
* extension_prefix - filename prefix for library extensions
* modules - extra Kohana resource paths, see <Kohana.find_file>
* autoload - libraries and models to be loaded with the controller
*/
Sets the cache driver, cache lifetime and garbage collection. See for more information the Cache library.
Sets defaults for cookies. See for more information the Cookie helper.
Sets database connection settings. Multiple configurations are possbile. See the database configuration page.
Enable or disable hooks. See Hooks page.
Sets the locale and timezone of an application. See Internationalization page.
Sets the logging threshold. See the Log page.
Sets the available mime-types. (See the validation/upload page?)
Sets pagination settings. See the Pagination page.
Sets payment settings.
Sets the information the profiler should show. See the Profiler page.
Sets the routes Kohana should use. Includes _default and _allowed. See Routing
Sets session settings including the session driver. See Session.
Sets upload directory.
Sets available user agents including robots and mobile browsers. See User Agent
Allowed file types (deprecated?)