'/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 'index.php if you don't use URL rewriting */ 'index_file' => false, 'profiling' => false, /** * profiling_paths - The paths to show in profiler. * * If you do not wish to see path set to 'NULL' * You can also add other paths that you wish not to see */ 'profiling_paths' => array( 'APPPATH' => APPPATH, 'COREPATH' => COREPATH, 'PKGPATH' => PKGPATH, ), /** * Default location for the file cache */ 'cache_dir' => APPPATH.'cache/', /** * Settings for the file finder cache (the Cache class has it's own config!) */ 'caching' => false, 'cache_lifetime' => 3600, // In Seconds /** * Callback to use with ob_start(), set this to 'ob_gzhandler' for gzip encoding of output */ 'ob_callback' => null, 'errors' => array( // Which errors should we show, but continue execution? You can add the following: // E_NOTICE, E_WARNING, E_DEPRECATED, E_STRICT to mimic PHP's default behaviour // (which is to continue on non-fatal errors). We consider this bad practice. 'continue_on' => array(), // How many errors should we show before we stop showing them? (prevents out-of-memory errors) 'throttle' => 10, // Should notices from Errorhandler::notice() be shown? 'notices' => true, // Render previous contents or show it as HTML? 'render_prior' => false, ), /** * Localization & internationalization settings */ 'language' => 'en', // Default language 'language_fallback' => 'en', // Fallback language when file isn't available for default language 'locale' => 'en_US', // PHP set_locale() setting, null to not set /** * Internal string encoding charset */ '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' => null, /** * Logging Threshold. Can be set to any of the following: * * \Fuel::L_NONE * \Fuel::L_ERROR * \Fuel::L_WARNING * \Fuel::L_DEBUG * \Fuel::L_INFO * \Fuel::L_ALL */ 'log_threshold' => \Fuel::L_WARNING, /** * Log file and path. If no filename is given, it will be generated. */ 'log_file' => null, 'log_path' => APPPATH.'logs/', 'log_date_format' => 'Y-m-d H:i:s', /** * If true, a backtrace is printed when a PHP fatal error is encountered in CLI mode */ 'cli_backtrace' => false, /** * Security settings */ 'security' => array( /** * If true, every HTTP request of the type speficied in autoload_methods * will be checked for a CSRF token. If not present or not valid, a * security exception will be thrown. */ 'csrf_autoload' => false, 'csrf_autoload_methods' => array('post', 'put', 'delete'), /** * If true, a HttpBadRequestException will be thrown. If false, a generic * SecurityException will be thrown. It is false by default for B/C reasons */ 'csrf_bad_request_on_fail' => false, /** * If true, Form::open() adds CSRF token hidden field automatically. */ 'csrf_auto_token' => false, /** * Name of the form field that holds the CSRF token. */ 'csrf_token_key' => 'fuel_csrf_token', /** * Expiry of the token in seconds. If zero, the token remains the same * for the entire user session. */ 'csrf_expiration' => 0, /** * A salt to make sure the generated security tokens are not predictable */ 'token_salt' => 'put your salt value here to make the token more secure', /** * Allow the Input class to use X headers when present * * Examples of these are HTTP_X_FORWARDED_FOR and HTTP_X_FORWARDED_PROTO, which * can be faked which could have security implications */ 'allow_x_headers' => false, /** * 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. * * Note: MUST BE DEFINED IN THE APP CONFIG FILE! */ //'uri_filter' => array(), /** * 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. * * Note: MUST BE DEFINED IN THE APP CONFIG FILE! */ //'input_filter' => array(), /** * This output 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. * * Note: MUST BE DEFINED IN THE APP CONFIG FILE! */ //'output_filter' => array(), /** * Encoding mechanism to use on htmlentities() */ 'htmlentities_flags' => ENT_QUOTES, /** * Whether to encode HTML entities as well */ 'htmlentities_double_encode' => false, /** * Whether to automatically filter view data */ 'auto_filter_output' => true, /** * Whether to filter closures as well */ 'filter_closures' => 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(), /** * Set this to true of your client sends data using the HTTP PUT, DELETE or PATCH methods * using the www-form-urlencoded content-type, and it's contents is urlencoded locally * before submitting */ 'form-double-urlencoded' => false, /** * clean_paths - paths to clean before outputting FQFN or paths * * If you do not wish to see path set to 'NULL' * You can also add other paths that you wish not to see */ 'clean_paths' => array( ), ), /** * 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, ), /** * Validation settings */ 'validation' => array( /** * Whether to fallback to global when a value is not found in the input array. */ 'global_input_fallback' => true, ), /** * Controller class prefix */ 'controller_prefix' => 'Controller_', /** * Routing settings */ 'routing' => array( /** * Whether URI routing is case sensitive or not */ 'case_sensitive' => true, /** * Whether to strip the extension */ 'strip_extension' => true, ), /** * Response settings */ 'response' => array( /** * Whether to support URI wildcards when redirecting */ 'redirect_with_wildcards' => true, ), /** * Config settings */ 'config' => array( /* * Name of the table used by the Config_Db driver */ 'table_name' => 'config', /* * Database that holds the config table */ 'database' => null, /* * Array of servers and portnumbers that run the memcached service for config data */ 'memcached' => array( 'identifier' => 'config', 'servers' => array( array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100), ), ), ), /** * Lang settings */ 'lang' => array( /* * Name of the table used by the Lang_Db driver */ 'table_name' => 'lang', ), /** * 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) * * Paths MUST end with a directory separator (the DS constant)! */ 'module_paths' => array( //APPPATH.'modules'.DS ), /** * To enable you to split up your additions to the framework, packages are * used. You can define the basepaths for your packages here. By default * empty, but to use them you can add something like this: * array(APPPATH.'modules'.DS) * * Paths MUST end with a directory separator (the DS constant)! */ 'package_paths' => array( //PKGPATH ), /**************************************************************************/ /* 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(), ), );