config/config – Kohana API 2.3 Documentation

application/config/config.php

site_domain

Base path of the web site. If this includes a domain, eg: localhost/kohana/ then a full URL will be used, eg: http://localhost/kohana/. If it only includes the path, and a site_protocol is specified, the domain will be auto-detected.

Default value: 'learn.kohanaphp.com/api/trunk/';

site_protocol

Force a default protocol to be used by the site. If no site_protocol is specified, then the current protocol is used, or when possible, only an absolute path (with no protocol/domain) is used.

Default value: '';

index_page

Name of the front controller for this application. Default: index.php

This can be removed by using URL rewriting.

Default value: '';

url_suffix

Fake file extension that will be added to all generated URLs. Example: .html

Default value: '';

internal_cache

Length of time of the internal cache in seconds. 0 or FALSE means no caching. The internal cache stores file paths and config entries across requests and can give significant speed improvements at the expense of delayed updating.

Default value: FALSE;

output_compression

Enable or disable gzip output compression. This can dramatically decrease server bandwidth usage, at the cost of slightly higher CPU usage. Set to the compression level (1-9) that you want to use, or FALSE to disable.

Do not enable this option if you are using output compression in php.ini!

Default value: FALSE;

global_xss_filtering

Enable or disable global XSS filtering of GET, POST, and SERVER data. This option also accepts a string to specify a specific XSS filtering tool.

Default value: TRUE;

allow_config_set

Enable or disable dynamic setting of configuration options. By default, all configuration options are read-only.

Default value: FALSE;

log_threshold

Log thresholds:

0
Disable logging
1
Errors and exceptions
2
Warnings
3
Notices
4
Debugging

Default value: 1;

log_directory

Message logging directory.

Default value: APPPATH.'logs';

display_errors

Enable or display displaying of Kohana error pages. This will not affect logging. Turning this off will disable ALL error pages.

Default value: TRUE;

render_stats

Enable or display statistics in the final output. Stats are replaced via specific strings, such as 0.2373.

Default value: TRUE;

extension_prefix

Filename prefixed used to determine extensions. For example, an extension to the Controller class would be named MY_Controller.php.

Default value: 'MY_';

modules

Additional resource paths, or "modules". Each path can either be absolute or relative to the docroot. Modules can include any resource that can exist in your application directory, configuration files, controllers, views, etc.

Default value: array