PageRenderTime 67ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

/cake/console/libs/templates/skel/config/core.php

https://github.com/hardsshah/bookmarks
PHP | 227 lines | 15 code | 1 blank | 211 comment | 0 complexity | 61622fc9b5c9268287d199ec932676c7 MD5 | raw file
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * This is core configuration file.
  5. *
  6. * Use it to configure core behavior of Cake.
  7. *
  8. * PHP versions 4 and 5
  9. *
  10. * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
  11. * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
  12. *
  13. * Licensed under The MIT License
  14. * Redistributions of files must retain the above copyright notice.
  15. *
  16. * @filesource
  17. * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
  18. * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
  19. * @package cake
  20. * @subpackage cake.app.config
  21. * @since CakePHP(tm) v 0.2.9
  22. * @version $Revision$
  23. * @modifiedby $LastChangedBy$
  24. * @lastmodified $Date$
  25. * @license http://www.opensource.org/licenses/mit-license.php The MIT License
  26. */
  27. /**
  28. * CakePHP Debug Level:
  29. *
  30. * Production Mode:
  31. * 0: No error messages, errors, or warnings shown. Flash messages redirect.
  32. *
  33. * Development Mode:
  34. * 1: Errors and warnings shown, model caches refreshed, flash messages halted.
  35. * 2: As in 1, but also with full debug messages and SQL output.
  36. * 3: As in 2, but also with full controller dump.
  37. *
  38. * In production mode, flash messages redirect after a time interval.
  39. * In development mode, you need to click the flash message to continue.
  40. */
  41. Configure::write('debug', 2);
  42. /**
  43. * Application wide charset encoding
  44. */
  45. Configure::write('App.encoding', 'UTF-8');
  46. /**
  47. * To configure CakePHP *not* to use mod_rewrite and to
  48. * use CakePHP pretty URLs, remove these .htaccess
  49. * files:
  50. *
  51. * /.htaccess
  52. * /app/.htaccess
  53. * /app/webroot/.htaccess
  54. *
  55. * And uncomment the App.baseUrl below:
  56. */
  57. //Configure::write('App.baseUrl', env('SCRIPT_NAME'));
  58. /**
  59. * Uncomment the define below to use CakePHP admin routes.
  60. *
  61. * The value of the define determines the name of the route
  62. * and its associated controller actions:
  63. *
  64. * 'admin' -> admin_index() and /admin/controller/index
  65. * 'superuser' -> superuser_index() and /superuser/controller/index
  66. */
  67. //Configure::write('Routing.admin', 'admin');
  68. /**
  69. * Turn off all caching application-wide.
  70. *
  71. */
  72. //Configure::write('Cache.disable', true);
  73. /**
  74. * Enable cache checking.
  75. *
  76. * If set to true, for view caching you must still use the controller
  77. * var $cacheAction inside your controllers to define caching settings.
  78. * You can either set it controller-wide by setting var $cacheAction = true,
  79. * or in each action using $this->cacheAction = true.
  80. *
  81. */
  82. //Configure::write('Cache.check', true);
  83. /**
  84. * Defines the default error type when using the log() function. Used for
  85. * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
  86. */
  87. define('LOG_ERROR', 2);
  88. /**
  89. * The preferred session handling method. Valid values:
  90. *
  91. * 'php' Uses settings defined in your php.ini.
  92. * 'cake' Saves session files in CakePHP's /tmp directory.
  93. * 'database' Uses CakePHP's database sessions.
  94. *
  95. * To define a custom session handler, save it at /app/config/<name>.php.
  96. * Set the value of 'Session.save' to <name> to utilize it in CakePHP.
  97. *
  98. * To use database sessions, execute the SQL file found at /app/config/sql/sessions.sql.
  99. *
  100. */
  101. Configure::write('Session.save', 'php');
  102. /**
  103. * The name of the table used to store CakePHP database sessions.
  104. *
  105. * 'Session.save' must be set to 'database' in order to utilize this constant.
  106. *
  107. * The table name set here should *not* include any table prefix defined elsewhere.
  108. */
  109. //Configure::write('Session.table', 'cake_sessions');
  110. /**
  111. * The DATABASE_CONFIG::$var to use for database session handling.
  112. *
  113. * 'Session.save' must be set to 'database' in order to utilize this constant.
  114. */
  115. //Configure::write('Session.database', 'default');
  116. /**
  117. * The name of CakePHP's session cookie.
  118. */
  119. Configure::write('Session.cookie', 'CAKEPHP');
  120. /**
  121. * Session time out time (in seconds).
  122. * Actual value depends on 'Security.level' setting.
  123. */
  124. Configure::write('Session.timeout', '120');
  125. /**
  126. * If set to false, sessions are not automatically started.
  127. */
  128. Configure::write('Session.start', true);
  129. /**
  130. * When set to false, HTTP_USER_AGENT will not be checked
  131. * in the session
  132. */
  133. Configure::write('Session.checkAgent', true);
  134. /**
  135. * The level of CakePHP security. The session timeout time defined
  136. * in 'Session.timeout' is multiplied according to the settings here.
  137. * Valid values:
  138. *
  139. * 'high' Session timeout in 'Session.timeout' x 10
  140. * 'medium' Session timeout in 'Session.timeout' x 100
  141. * 'low' Session timeout in 'Session.timeout' x 300
  142. *
  143. * CakePHP session IDs are also regenerated between requests if
  144. * 'Security.level' is set to 'high'.
  145. */
  146. Configure::write('Security.level', 'high');
  147. /**
  148. * A random string used in security hashing methods.
  149. */
  150. Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
  151. /**
  152. * Compress CSS output by removing comments, whitespace, repeating tags, etc.
  153. * This requires a/var/cache directory to be writable by the web server for caching.
  154. * and /vendors/csspp/csspp.php
  155. *
  156. * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css().
  157. */
  158. //Configure::write('Asset.filter.css', 'css.php');
  159. /**
  160. * Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the
  161. * output, and setting the config below to the name of the script.
  162. *
  163. * To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link().
  164. */
  165. //Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');
  166. /**
  167. * The classname and database used in CakePHP's
  168. * access control lists.
  169. */
  170. Configure::write('Acl.classname', 'DbAcl');
  171. Configure::write('Acl.database', 'default');
  172. /**
  173. *
  174. * Cache Engine Configuration
  175. * Default settings provided below
  176. *
  177. * File storage engine.
  178. *
  179. * Cache::config('default', array(
  180. * 'engine' => 'File', //[required]
  181. * 'duration'=> 3600, //[optional]
  182. * 'probability'=> 100, //[optional]
  183. * 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
  184. * 'prefix' => 'cake_', //[optional] prefix every cache file with this string
  185. * 'lock' => false, //[optional] use file locking
  186. * 'serialize' => true, [optional]
  187. * ));
  188. *
  189. *
  190. * APC (http://pecl.php.net/package/APC)
  191. *
  192. * Cache::config('default', array(
  193. * 'engine' => 'Apc', //[required]
  194. * 'duration'=> 3600, //[optional]
  195. * 'probability'=> 100, //[optional]
  196. * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
  197. * ));
  198. *
  199. * Xcache (http://xcache.lighttpd.net/)
  200. *
  201. * Cache::config('default', array(
  202. * 'engine' => 'Xcache', //[required]
  203. * 'duration'=> 3600, //[optional]
  204. * 'probability'=> 100, //[optional]
  205. * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
  206. * 'user' => 'user', //user from xcache.admin.user settings
  207. * 'password' => 'password', //plaintext password (xcache.admin.pass)
  208. * ));
  209. *
  210. *
  211. * Memcache (http://www.danga.com/memcached/)
  212. *
  213. * Cache::config('default', array(
  214. * 'engine' => 'Memcache', //[required]
  215. * 'duration'=> 3600, //[optional]
  216. * 'probability'=> 100, //[optional]
  217. * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
  218. * 'servers' => array(
  219. * '127.0.0.1:11211' // localhost, default port 11211
  220. * ), //[optional]
  221. * 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
  222. * ));
  223. *
  224. */
  225. Cache::config('default', array('engine' => 'File'));
  226. ?>