Warning! This page has the following tags:

  • This page needs to be merged with docbook documentation.

Agavi Configuration Directives

The following is a list of directives you can set via AgaviConfig:

Core Directives

NameDescriptionPossible ValuesDefault Value
core.debugEnables or disables debug modetrue, falsefalse
core.availableWhether or not this Application is availabletrue, falsefalse
core.minimum_php_versionThe minimum version of PHP required
core.app_nameThe name of the Application
core.environmentThe name of the Environment to bootstrap in case you don't want to hand it to Agavi::bootstrap() as an argument.
core.default_contextThe name of the Context that will be returned by AgaviContext::getInstance() if you don't supply a name as an argument.
core.use_databaseWhether or not to use database functionalitiestrue, falsefalse
core.use_loggingWhether or not logging should be enabledtrue, falsefalse
core.use_securityWhether or not to enable security featurestrue, falsetrue
core.use_translationWhether or not to enable translation featurestrue, falsefalse
core.agavi_dirThe location of AgaviThe folder where agavi.php is located.
core.cache_dirThe location where Agavi will store cache files for configuration, output, compiled templates etc."core.app_dir/cache"
core.cldr_dirThe application's cldr data directory."core.agavi_dir/translation/data"
core.config_dirThe location where the application's config files are stored"core.app_dir/config"
core.system_config_dirThe location where the Agavi's default config files (autoload.xml, compile.xml and config_handlers.xml) are stored. You usually shouldn't have to change this."core.app_dir/config/defaults"
core.lib_dirThe application's library directory."core.app_dir/lib"
core.model_dirThe application's global model directory."core.app_dir/models"
core.module_dirThe folder where an application's modules reside in"core.app_dir/modules"
core.template_dirThe folder where an application's global templates are stored"core.app_dir/templates"
core.app_dirThe location of your application's app dir. This value must be set before Agavi::bootstrap() is called.
core.skip_config_validationWhether or not validation for config files should be skipped (good if you have an old, buggy libxml version)true, falsefalse
core.skip_config_transformationsWhether or not transformations for config files should be skipped (this includes backwards-compatibility transformations and Schematron validation)true, falsefalse

Default Action Directives

These are used to configure module and action names for the default Actions Agavi uses in special situations.

NameDescriptionPossible ValuesDefault Value
actions.error_404_moduleAgavi forwards to the 404 Action when a requested module or action could not be found.
actions.error_404_actionThe action name of the 404 Action.
actions.default_moduleThe Default Action is executed when the request does not contain information about the module and action to run.
actions.default_actionThe action name of the Default Action.
actions.login_moduleUnauthenticated users are forwarded to the Login Action when a request is made for a secure action.
actions.login_actionThe action name of the Login Action.
actions.module_disabled_moduleThe Module Disabled Action will be run if the request is made for a disabled module.
actions.module_disabled_actionThe action name of the Module Disabled Action.
actions.secure_moduleThe Secure Action is run when a user does not have sufficient credentials to access an Action (basically a 403 Forbidden page).
actions.secure_actionThe action name of the Secure Action.
actions.unavailable_moduleThe Unvailable Action is executed when the application is in unavailable state, i.e. core.available is set to false.
actions.unavailable_actionThe action name of the Unavailable Action.

Agavi Information Directives

These settings are for informational purposes and usually shouldn't be changed at runtime (no idea why you would want to anyway).

NameDescriptionPossible ValuesDefault Value
agavi.nameThe name of the framework ;)"Agavi"
agavi.major_versionThe major framework version, e.g. "1"
agavi.minor_versionThe minor framework version, e.g. "0"
agavi.micro_versionThe micro framework version, e.g. "3"
agavi.branchThe framework version branch, usually "trunk"
agavi.statusThe framework version status, such as "DEV" or "RC1" or "stable"
agavi.versionThe entire version information string, e.g. "1.0.3-stable""agavi.major_version.agavi.minor_version.agavi.micro_version-agavi.status"
agavi.releaseThe entire release information string, e.g. "Agavi/1.0.3-stable""agavi.name/agavi.version"
agavi.urlThe URL to the framework website"http://www.agavi.org"
agavi.infoThe complete information string, e.g. "Agavi/1.0.3-stable (http://www.agavi.org)""agavi.release (agavi.url)"