config.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <?php
  2. /**
  3. * Fuel is a fast, lightweight, community driven PHP5 framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * If you want to override the default configuration, add the keys you
  14. * want to change here, and assign new values to them.
  15. */
  16. return array(
  17. /**
  18. * base_url - The base URL of the application.
  19. * MUST contain a trailing slash (/)
  20. *
  21. * You can set this to a full or relative URL:
  22. *
  23. * 'base_url' => '/foo/',
  24. * 'base_url' => 'http://foo.com/'
  25. *
  26. * Set this to null to have it automatically detected.
  27. */
  28. // 'base_url' => null,
  29. /**
  30. * url_suffix - Any suffix that needs to be added to
  31. * URL's generated by Fuel. If the suffix is an extension,
  32. * make sure to include the dot
  33. *
  34. * 'url_suffix' => '.html',
  35. *
  36. * Set this to an empty string if no suffix is used
  37. */
  38. // 'url_suffix' => '',
  39. /**
  40. * index_file - The name of the main bootstrap file.
  41. *
  42. * Set this to 'index.php if you don't use URL rewriting
  43. */
  44. // 'index_file' => false,
  45. // 'profiling' => false,
  46. /**
  47. * Default location for the file cache
  48. */
  49. // 'cache_dir' => APPPATH.'cache/',
  50. /**
  51. * Settings for the file finder cache (the Cache class has it's own config!)
  52. */
  53. // 'caching' => false,
  54. // 'cache_lifetime' => 3600, // In Seconds
  55. /**
  56. * Callback to use with ob_start(), set this to 'ob_gzhandler' for gzip encoding of output
  57. */
  58. // 'ob_callback' => null,
  59. // 'errors' => array(
  60. // Which errors should we show, but continue execution? You can add the following:
  61. // E_NOTICE, E_WARNING, E_DEPRECATED, E_STRICT to mimic PHP's default behaviour
  62. // (which is to continue on non-fatal errors). We consider this bad practice.
  63. // 'continue_on' => array(),
  64. // How many errors should we show before we stop showing them? (prevents out-of-memory errors)
  65. // 'throttle' => 10,
  66. // Should notices from Error::notice() be shown?
  67. // 'notices' => true,
  68. // ),
  69. /**
  70. * Localization & internationalization settings
  71. */
  72. // 'language' => 'en', // Default language
  73. // 'language_fallback' => 'en', // Fallback language when file isn't available for default language
  74. // 'locale' => 'en_US', // PHP set_locale() setting, null to not set
  75. /**
  76. * Internal string encoding charset
  77. */
  78. // 'encoding' => 'UTF-8',
  79. /**
  80. * DateTime settings
  81. *
  82. * server_gmt_offset in seconds the server offset from gmt timestamp when time() is used
  83. * default_timezone optional, if you want to change the server's default timezone
  84. */
  85. // 'server_gmt_offset' => 0,
  86. // 'default_timezone' => null,
  87. /**
  88. * Logging Threshold. Can be set to any of the following:
  89. *
  90. * Fuel::L_NONE
  91. * Fuel::L_ERROR
  92. * Fuel::L_WARNING
  93. * Fuel::L_DEBUG
  94. * Fuel::L_INFO
  95. * Fuel::L_ALL
  96. */
  97. // 'log_threshold' => Fuel::L_WARNING,
  98. // 'log_path' => APPPATH.'logs/',
  99. // 'log_date_format' => 'Y-m-d H:i:s',
  100. /**
  101. * Security settings
  102. */
  103. 'security' => array(
  104. // 'csrf_autoload' => false,
  105. // 'csrf_token_key' => 'fuel_csrf_token',
  106. // 'csrf_expiration' => 0,
  107. /**
  108. * This input filter can be any normal PHP function as well as 'xss_clean'
  109. *
  110. * WARNING: Using xss_clean will cause a performance hit.
  111. * How much is dependant on how much input data there is.
  112. */
  113. 'uri_filter' => array('htmlentities'),
  114. /**
  115. * This input filter can be any normal PHP function as well as 'xss_clean'
  116. *
  117. * WARNING: Using xss_clean will cause a performance hit.
  118. * How much is dependant on how much input data there is.
  119. */
  120. // 'input_filter' => array(),
  121. /**
  122. * This output filter can be any normal PHP function as well as 'xss_clean'
  123. *
  124. * WARNING: Using xss_clean will cause a performance hit.
  125. * How much is dependant on how much input data there is.
  126. */
  127. 'output_filter' => array('Security::htmlentities'),
  128. /**
  129. * Encoding mechanism to use on htmlentities()
  130. */
  131. // 'htmlentities_flags' => ENT_QUOTES,
  132. /**
  133. * Wether to encode HTML entities as well
  134. */
  135. // 'htmlentities_double_encode' => false,
  136. /**
  137. * Whether to automatically filter view data
  138. */
  139. // 'auto_filter_output' => true,
  140. /**
  141. * With output encoding switched on all objects passed will be converted to strings or
  142. * throw exceptions unless they are instances of the classes in this array.
  143. */
  144. 'whitelisted_classes' => array(
  145. 'Fuel\\Core\\Response',
  146. 'Fuel\\Core\\View',
  147. 'Fuel\\Core\\ViewModel',
  148. 'Closure',
  149. ),
  150. ),
  151. /**
  152. * Cookie settings
  153. */
  154. // 'cookie' => array(
  155. // Number of seconds before the cookie expires
  156. // 'expiration' => 0,
  157. // Restrict the path that the cookie is available to
  158. // 'path' => '/',
  159. // Restrict the domain that the cookie is available to
  160. // 'domain' => null,
  161. // Only transmit cookies over secure connections
  162. // 'secure' => false,
  163. // Only transmit cookies over HTTP, disabling Javascript access
  164. // 'http_only' => false,
  165. // ),
  166. /**
  167. * Validation settings
  168. */
  169. // 'validation' => array(
  170. /**
  171. * Wether to fallback to global when a value is not found in the input array.
  172. */
  173. // 'global_input_fallback' => true,
  174. // ),
  175. /**
  176. * Controller class prefix
  177. */
  178. // 'controller_prefix' => 'Controller_',
  179. /**
  180. * Routing settings
  181. */
  182. // 'routing' => array(
  183. /**
  184. * Whether URI routing is case sensitive or not
  185. */
  186. // 'case_sensitive' => true,
  187. /**
  188. * Wether to strip the extension
  189. */
  190. // 'strip_extension' => true,
  191. // ),
  192. /**
  193. * To enable you to split up your application into modules which can be
  194. * routed by the first uri segment you have to define their basepaths
  195. * here. By default empty, but to use them you can add something
  196. * like this:
  197. * array(APPPATH.'modules'.DS)
  198. *
  199. * Paths MUST end with a directory separator (the DS constant)!
  200. */
  201. // 'module_paths' => array(
  202. // //APPPATH.'modules'.DS
  203. // ),
  204. /**
  205. * To enable you to split up your additions to the framework, packages are
  206. * used. You can define the basepaths for your packages here. By default
  207. * empty, but to use them you can add something like this:
  208. * array(APPPATH.'modules'.DS)
  209. *
  210. * Paths MUST end with a directory separator (the DS constant)!
  211. */
  212. // 'package_paths' => array(
  213. // //PKGPATH
  214. // ),
  215. /**************************************************************************/
  216. /* Always Load */
  217. /**************************************************************************/
  218. 'always_load' => array(
  219. /**
  220. * These packages are loaded on Fuel's startup.
  221. * You can specify them in the following manner:
  222. *
  223. * array('auth'); // This will assume the packages are in PKGPATH
  224. *
  225. * // Use this format to specify the path to the package explicitly
  226. * array(
  227. * array('auth' => PKGPATH.'auth/')
  228. * );
  229. */
  230. 'packages' => array(
  231. 'orm',
  232. ),
  233. /**
  234. * These modules are always loaded on Fuel's startup. You can specify them
  235. * in the following manner:
  236. *
  237. * array('module_name');
  238. *
  239. * A path must be set in module_paths for this to work.
  240. */
  241. // 'modules' => array(),
  242. /**
  243. * Classes to autoload & initialize even when not used
  244. */
  245. // 'classes' => array(),
  246. /**
  247. * Configs to autoload
  248. *
  249. * Examples: if you want to load 'session' config into a group 'session' you only have to
  250. * add 'session'. If you want to add it to another group (example: 'auth') you have to
  251. * add it like 'session' => 'auth'.
  252. * If you don't want the config in a group use null as groupname.
  253. */
  254. // 'config' => array(),
  255. /**
  256. * Language files to autoload
  257. *
  258. * Examples: if you want to load 'validation' lang into a group 'validation' you only have to
  259. * add 'validation'. If you want to add it to another group (example: 'forms') you have to
  260. * add it like 'validation' => 'forms'.
  261. * If you don't want the lang in a group use null as groupname.
  262. */
  263. // 'language' => array(),
  264. ),
  265. );