core.php

Go to the documentation of this file.
00001 <?php
00002 /* SVN FILE: $Id: core.php 7805 2008-10-30 17:30:26Z AD7six $ */
00003 /**
00004  * This is core configuration file.
00005  *
00006  * Use it to configure core behavior of Cake.
00007  *
00008  * PHP versions 4 and 5
00009  *
00010  * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
00011  * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
00012  *
00013  * Licensed under The MIT License
00014  * Redistributions of files must retain the above copyright notice.
00015  *
00016  * @filesource
00017  * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
00018  * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
00019  * @package       cake
00020  * @subpackage    cake.app.config
00021  * @since         CakePHP(tm) v 0.2.9
00022  * @version       $Revision: 7805 $
00023  * @modifiedby    $LastChangedBy: AD7six $
00024  * @lastmodified  $Date: 2008-10-30 13:30:26 -0400 (Thu, 30 Oct 2008) $
00025  * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
00026  */
00027 /**
00028  * CakePHP Debug Level:
00029  *
00030  * Production Mode:
00031  *  0: No error messages, errors, or warnings shown. Flash messages redirect.
00032  *
00033  * Development Mode:
00034  *  1: Errors and warnings shown, model caches refreshed, flash messages halted.
00035  *  2: As in 1, but also with full debug messages and SQL output.
00036  *  3: As in 2, but also with full controller dump.
00037  *
00038  * In production mode, flash messages redirect after a time interval.
00039  * In development mode, you need to click the flash message to continue.
00040  */
00041     Configure::write('debug', 2);
00042 /**
00043  * Application wide charset encoding
00044  */
00045     Configure::write('App.encoding', 'UTF-8');
00046 /**
00047  * To configure CakePHP *not* to use mod_rewrite and to
00048  * use CakePHP pretty URLs, remove these .htaccess
00049  * files:
00050  *
00051  * /.htaccess
00052  * /app/.htaccess
00053  * /app/webroot/.htaccess
00054  *
00055  * And uncomment the App.baseUrl below:
00056  */
00057     //Configure::write('App.baseUrl', env('SCRIPT_NAME'));
00058 /**
00059  * Uncomment the define below to use CakePHP admin routes.
00060  *
00061  * The value of the define determines the name of the route
00062  * and its associated controller actions:
00063  *
00064  * 'admin'      -> admin_index() and /admin/controller/index
00065  * 'superuser' -> superuser_index() and /superuser/controller/index
00066  */
00067     //Configure::write('Routing.admin', 'admin');
00068 
00069 /**
00070  * Turn off all caching application-wide.
00071  *
00072  */
00073     //Configure::write('Cache.disable', true);
00074 /**
00075  * Enable cache checking.
00076  *
00077  * If set to true, for view caching you must still use the controller
00078  * var $cacheAction inside your controllers to define caching settings.
00079  * You can either set it controller-wide by setting var $cacheAction = true,
00080  * or in each action using $this->cacheAction = true.
00081  *
00082  */
00083     //Configure::write('Cache.check', true);
00084 /**
00085  * Defines the default error type when using the log() function. Used for
00086  * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
00087  */
00088     define('LOG_ERROR', 2);
00089 /**
00090  * The preferred session handling method. Valid values:
00091  *
00092  * 'php'            Uses settings defined in your php.ini.
00093  * 'cake'       Saves session files in CakePHP's /tmp directory.
00094  * 'database'   Uses CakePHP's database sessions.
00095  *
00096  * To define a custom session handler, save it at /app/config/<name>.php.
00097  * Set the value of 'Session.save' to <name> to utilize it in CakePHP.
00098  *
00099  * To use database sessions, execute the SQL file found at /app/config/sql/sessions.sql.
00100  *
00101  */
00102     Configure::write('Session.save', 'php');
00103 /**
00104  * The name of the table used to store CakePHP database sessions.
00105  *
00106  * 'Session.save' must be set to 'database' in order to utilize this constant.
00107  *
00108  * The table name set here should *not* include any table prefix defined elsewhere.
00109  */
00110     //Configure::write('Session.table', 'cake_sessions');
00111 /**
00112  * The DATABASE_CONFIG::$var to use for database session handling.
00113  *
00114  * 'Session.save' must be set to 'database' in order to utilize this constant.
00115  */
00116     //Configure::write('Session.database', 'default');
00117 /**
00118  * The name of CakePHP's session cookie.
00119  */
00120     Configure::write('Session.cookie', 'CAKEPHP');
00121 /**
00122  * Session time out time (in seconds).
00123  * Actual value depends on 'Security.level' setting.
00124  */
00125     Configure::write('Session.timeout', '120');
00126 /**
00127  * If set to false, sessions are not automatically started.
00128  */
00129     Configure::write('Session.start', true);
00130 /**
00131  * When set to false, HTTP_USER_AGENT will not be checked
00132  * in the session
00133  */
00134     Configure::write('Session.checkAgent', true);
00135 /**
00136  * The level of CakePHP security. The session timeout time defined
00137  * in 'Session.timeout' is multiplied according to the settings here.
00138  * Valid values:
00139  *
00140  * 'high'   Session timeout in 'Session.timeout' x 10
00141  * 'medium' Session timeout in 'Session.timeout' x 100
00142  * 'low'        Session timeout in 'Session.timeout' x 300
00143  *
00144  * CakePHP session IDs are also regenerated between requests if
00145  * 'Security.level' is set to 'high'.
00146  */
00147     Configure::write('Security.level', 'high');
00148 /**
00149  * A random string used in security hashing methods.
00150  */
00151     Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
00152 /**
00153  * Compress CSS output by removing comments, whitespace, repeating tags, etc.
00154  * This requires a/var/cache directory to be writable by the web server for caching.
00155  * and /vendors/csspp/csspp.php
00156  *
00157  * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css().
00158  */
00159     //Configure::write('Asset.filter.css', 'css.php');
00160 /**
00161  * Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the
00162  * output, and setting the config below to the name of the script.
00163  *
00164  * To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link().
00165  */
00166     //Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');
00167 /**
00168  * The classname and database used in CakePHP's
00169  * access control lists.
00170  */
00171     Configure::write('Acl.classname', 'DbAcl');
00172     Configure::write('Acl.database', 'default');
00173 /**
00174  *
00175  * Cache Engine Configuration
00176  * Default settings provided below
00177  *
00178  * File storage engine.
00179  *
00180  *   Cache::config('default', array(
00181  *      'engine' => 'File', //[required]
00182  *      'duration'=> 3600, //[optional]
00183  *      'probability'=> 100, //[optional]
00184  *      'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
00185  *      'prefix' => 'cake_', //[optional]  prefix every cache file with this string
00186  *      'lock' => false, //[optional]  use file locking
00187  *      'serialize' => true, [optional]
00188  *  ));
00189  *
00190  *
00191  * APC (http://pecl.php.net/package/APC)
00192  *
00193  *   Cache::config('default', array(
00194  *      'engine' => 'Apc', //[required]
00195  *      'duration'=> 3600, //[optional]
00196  *      'probability'=> 100, //[optional]
00197  *      'prefix' => Inflector::slug(APP_DIR) . '_', //[optional]  prefix every cache file with this string
00198  *  ));
00199  *
00200  * Xcache (http://xcache.lighttpd.net/)
00201  *
00202  *   Cache::config('default', array(
00203  *      'engine' => 'Xcache', //[required]
00204  *      'duration'=> 3600, //[optional]
00205  *      'probability'=> 100, //[optional]
00206  *      'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
00207  *      'user' => 'user', //user from xcache.admin.user settings
00208  *      'password' => 'password', //plaintext password (xcache.admin.pass)
00209  *  ));
00210  *
00211  *
00212  * Memcache (http://www.danga.com/memcached/)
00213  *
00214  *   Cache::config('default', array(
00215  *      'engine' => 'Memcache', //[required]
00216  *      'duration'=> 3600, //[optional]
00217  *      'probability'=> 100, //[optional]
00218  *      'prefix' => Inflector::slug(APP_DIR) . '_', //[optional]  prefix every cache file with this string
00219  *      'servers' => array(
00220  *          '127.0.0.1:11211' // localhost, default port 11211
00221  *      ), //[optional]
00222  *      'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
00223  *  ));
00224  *
00225  */
00226     Cache::config('default', array('engine' => 'File'));
00227 ?>

Generated on Sun Nov 22 00:30:52 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7