Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

239 lines (199 sloc) 5.891 kb
<?php
/**
* Fuel is a fast, lightweight, community driven PHP5 framework.
*
* @package Fuel
* @version 1.0
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2011 Fuel Development Team
* @link http://fuelphp.com
*/
return array(
/**
* base_url - The base URL of the application.
* MUST contain a trailing slash (/)
*
* You can set this to a full or relative URL:
*
* 'base_url' => '/foo',
* 'base_url' => 'http://foo.com/'
*
* Set this to null to have it automatically detected.
*/
'base_url' => null,
/**
* url_suffix - Any suffix that needs to be added to
* URL's generated by Fuel. If the suffix is an extension,
* make sure to include the dot
*
* 'url_suffix' => '.html',
*
* Set this to an empty string if no suffix is used
*/
'url_suffix' => '',
/**
* index_file - The name of the main bootstrap file.
*
* Set this to false or remove if you using mod_rewrite.
*/
'index_file' => 'index.php',
/**
* Your environment. Can be set to any of the following:
*
* Fuel::DEVELOPMENT
* Fuel::TEST
* Fuel::STAGE
* Fuel::PRODUCTION
*/
'environment' => (isset($_SERVER['FUEL_ENV']) ? $_SERVER['FUEL_ENV'] : Fuel::DEVELOPMENT),
'profiling' => false,
'caching' => false,
'cache_dir' => APPPATH.'cache/',
'cache_lifetime' => 3600, // In Seconds
/**
* Callback to use with ob_start(), set this to 'ob_gzhandler' for gzip encodign of output
*/
'ob_callback' => null,
'errors' => array(
// Which errors should we show, but continue execution?
'continue_on' => array(E_NOTICE, E_WARNING, E_DEPRECATED, E_STRICT),
// How many errors should we show before we stop showing them? (prevents out-of-memory errors)
'throttle' => 10,
'notices' => true,
),
'language' => 'en',
'locale' => 'en_US',
'encoding' => 'UTF-8',
/**
* DateTime settings
*
* server_gmt_offset in seconds the server offset from gmt timestamp when time() is used
* default_timezone optional, if you want to change the server's default timezone
*/
'server_gmt_offset' => 0,
'default_timezone' => 'UTC',
/**
* Logging Threshold. Can be set to any of the following:
*
* Fuel::L_NONE
* Fuel::L_ERROR
* Fuel::L_DEBUG
* Fuel::L_INFO
* Fuel::L_ALL
*/
'log_threshold' => Fuel::L_ERROR,
'log_path' => APPPATH.'logs/',
'log_date_format' => 'Y-m-d H:i:s',
/**
* Security settings
*/
'security' => array(
'csrf_autoload' => false,
'csrf_token_key' => 'fuel_csrf_token',
'csrf_expiration' => 0,
'uri_filter' => array('htmlentities'),
/**
* This input filter can be any normal PHP function as well as 'xss_clean'
*
* WARNING: Using xss_clean will cause a performance hit. How much is
* dependant on how much input data there is.
*/
'input_filter' => array(),
/**
* Whether to automatically encode (htmlentities) view data
*/
'auto_encode_view_data' => true,
/**
* With output encoding switched on all objects passed will be converted to strings or
* throw exceptions unless they are instances of the classes in this array.
*/
'whitelisted_classes' => array('stdClass', 'Fuel\\Core\\View', 'Fuel\\Core\\ViewModel', 'Closure')
),
/**
* Cookie settings
*/
'cookie' => array(
/**
* Number of seconds before the cookie expires
*/
'expiration' => 0,
/**
* Restrict the path that the cookie is available to
*/
'path' => '/',
/**
* Restrict the domain that the cookie is available to
*/
'domain' => null,
/**
* Only transmit cookies over secure connections
*/
'secure' => false,
/**
* Only transmit cookies over HTTP, disabling Javascript access
*/
'http_only' => false,
),
/**
* To enable you to split up your application into modules which can be
* routed by the first uri segment you have to define their basepaths
* here. By default empty, but to use them you can add something
* like this:
* array(APPPATH.'modules'.DS)
*/
'module_paths' => array(
//APPPATH.'modules'.DS
),
/**************************************************************************/
/* Always Load */
/**************************************************************************/
'always_load' => array(
/**
* These packages are loaded on Fuel's startup. You can specify them in
* the following manner:
*
* array('auth'); // This will assume the packages are in PKGPATH
*
* // Use this format to specify the path to the package explicitly
* array(
* array('auth' => PKGPATH.'auth/')
* );
*/
'packages' => array(
//'orm',
),
/**
* These modules are always loaded on Fuel's startup. You can specify them
* in the following manner:
*
* array('module_name');
*
* A path must be set in module_paths for this to work.
*/
'modules' => array(),
/**
* Classes to autoload & initialize even when not used
*/
'classes' => array(),
/**
* Configs to autoload
*
* Examples: if you want to load 'session' config into a group 'session' you only have to
* add 'session'. If you want to add it to another group (example: 'auth') you have to
* add it like 'session' => 'auth'.
* If you don't want the config in a group use null as groupname.
*/
'config' => array(),
/**
* Language files to autoload
*
* Examples: if you want to load 'validation' lang into a group 'validation' you only have to
* add 'validation'. If you want to add it to another group (example: 'forms') you have to
* add it like 'validation' => 'forms'.
* If you don't want the lang in a group use null as groupname.
*/
'language' => array(),
),
);
/* End of file config.php */
Jump to Line
Something went wrong with that request. Please try again.