Warning! This page has the following tags:
- This page needs to be merged with docbook documentation.
The AgaviConfig class
Introduction
AgaviConfig serves as a basic registry class to store system configuration values at runtime.
See ConfigurationDirectives for a list of possible settings.
Usage
AgaviConfig::set('core.debug', true); //sets debug mode to on
AgaviConfig::set('controller.content_type', 'text/html', false); //sets default content type to "text/html" if that directive wasn't set before (third parameter)
$debug = AgaviConfig::get('core.debug');
$webapp_name = AgaviConfig::get('core.webapp_name', 'Foobar'); //with default value (second parameter)
Consult the API documentation for a full list of AgaviConfig methods.

