2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2011-03-12 17:19:06 +00:00
|
|
|
* This file is loaded automatically by the app/webroot/index.php file after core.php
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2011-10-28 05:01:17 +00:00
|
|
|
* This file should load/create any application wide configuration settings, such as
|
2011-03-12 17:19:06 +00:00
|
|
|
* Caching, Logging, loading additional configuration files.
|
|
|
|
*
|
|
|
|
* You should also use this file to include any files that provide global functions/constants
|
|
|
|
* that your application uses.
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2010-10-03 16:38:58 +00:00
|
|
|
* PHP 5
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2009-07-25 22:17:27 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
2013-02-08 11:59:49 +00:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
2013-02-08 12:22:51 +00:00
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
2008-05-30 11:40:08 +00:00
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2013-02-08 11:59:49 +00:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2009-07-25 22:17:27 +00:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
2011-07-26 06:16:14 +00:00
|
|
|
* @package app.Config
|
2008-10-30 17:30:26 +00:00
|
|
|
* @since CakePHP(tm) v 0.10.8.2117
|
2009-11-06 06:51:51 +00:00
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2011-03-12 17:19:06 +00:00
|
|
|
// Setup a 'default' cache configuration for use in the application.
|
|
|
|
Cache::config('default', array('engine' => 'File'));
|
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
2009-07-25 22:17:27 +00:00
|
|
|
* The settings below can be used to set additional paths to models, views and controllers.
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2009-07-25 22:17:27 +00:00
|
|
|
* App::build(array(
|
2012-04-23 04:16:00 +00:00
|
|
|
* 'Model' => array('/path/to/models', '/next/path/to/models'),
|
|
|
|
* 'Model/Behavior' => array('/path/to/behaviors', '/next/path/to/behaviors'),
|
|
|
|
* 'Model/Datasource' => array('/path/to/datasources', '/next/path/to/datasources'),
|
|
|
|
* 'Model/Datasource/Database' => array('/path/to/databases', '/next/path/to/database'),
|
|
|
|
* 'Model/Datasource/Session' => array('/path/to/sessions', '/next/path/to/sessions'),
|
|
|
|
* 'Controller' => array('/path/to/controllers', '/next/path/to/controllers'),
|
|
|
|
* 'Controller/Component' => array('/path/to/components', '/next/path/to/components'),
|
|
|
|
* 'Controller/Component/Auth' => array('/path/to/auths', '/next/path/to/auths'),
|
|
|
|
* 'Controller/Component/Acl' => array('/path/to/acls', '/next/path/to/acls'),
|
|
|
|
* 'View' => array('/path/to/views', '/next/path/to/views'),
|
|
|
|
* 'View/Helper' => array('/path/to/helpers', '/next/path/to/helpers'),
|
|
|
|
* 'Console' => array('/path/to/consoles', '/next/path/to/consoles'),
|
|
|
|
* 'Console/Command' => array('/path/to/commands', '/next/path/to/commands'),
|
|
|
|
* 'Console/Command/Task' => array('/path/to/tasks', '/next/path/to/tasks'),
|
|
|
|
* 'Lib' => array('/path/to/libs', '/next/path/to/libs'),
|
|
|
|
* 'Locale' => array('/path/to/locales', '/next/path/to/locales'),
|
|
|
|
* 'Vendor' => array('/path/to/vendors', '/next/path/to/vendors'),
|
|
|
|
* 'Plugin' => array('/path/to/plugins', '/next/path/to/plugins'),
|
2009-07-25 22:17:27 +00:00
|
|
|
* ));
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
*/
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
2011-07-07 07:04:22 +00:00
|
|
|
* Custom Inflector rules, can be set to correctly pluralize or singularize table, model, controller names or whatever other
|
|
|
|
* string is passed to the inflection functions
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2010-04-19 02:08:04 +00:00
|
|
|
* Inflector::rules('singular', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
|
2010-04-17 18:41:30 +00:00
|
|
|
* Inflector::rules('plural', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
*/
|
2011-07-07 07:04:22 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Plugins need to be loaded manually, you can either load them one by one or all of them in a single call
|
|
|
|
* Uncomment one of the lines below, as you need. make sure you read the documentation on CakePlugin to use more
|
|
|
|
* advanced ways of loading plugins
|
|
|
|
*
|
|
|
|
* CakePlugin::loadAll(); // Loads all plugins at once
|
|
|
|
* CakePlugin::load('DebugKit'); //Loads a single plugin named DebugKit
|
|
|
|
*
|
2011-10-14 19:06:36 +00:00
|
|
|
*/
|
2012-04-17 05:12:18 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* You can attach event listeners to the request lifecyle as Dispatcher Filter . By Default CakePHP bundles two filters:
|
|
|
|
*
|
|
|
|
* - AssetDispatcher filter will serve your asset files (css, images, js, etc) from your themes and plugins
|
|
|
|
* - CacheDispatcher filter will read the Cache.check configure variable and try to serve cached content generated from controllers
|
|
|
|
*
|
|
|
|
* Feel free to remove or add filters as you see fit for your application. A few examples:
|
|
|
|
*
|
|
|
|
* Configure::write('Dispatcher.filters', array(
|
|
|
|
* 'MyCacheFilter', // will use MyCacheFilter class from the Routing/Filter package in your app.
|
|
|
|
* 'MyPlugin.MyFilter', // will use MyFilter class from the Routing/Filter package in MyPlugin plugin.
|
2013-02-03 19:00:32 +00:00
|
|
|
* array('callable' => $aFunction, 'on' => 'before', 'priority' => 9), // A valid PHP callback type to be called on beforeDispatch
|
|
|
|
* array('callable' => $anotherMethod, 'on' => 'after'), // A valid PHP callback type to be called on afterDispatch
|
2012-04-17 05:12:18 +00:00
|
|
|
*
|
|
|
|
* ));
|
|
|
|
*/
|
|
|
|
Configure::write('Dispatcher.filters', array(
|
|
|
|
'AssetDispatcher',
|
|
|
|
'CacheDispatcher'
|
2012-04-24 01:50:36 +00:00
|
|
|
));
|
2012-05-09 05:05:06 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Configures default file logging options
|
|
|
|
*/
|
2012-05-11 09:15:15 +00:00
|
|
|
App::uses('CakeLog', 'Log');
|
2012-05-09 05:05:06 +00:00
|
|
|
CakeLog::config('debug', array(
|
|
|
|
'engine' => 'FileLog',
|
2012-10-13 06:29:25 +00:00
|
|
|
'types' => array('notice', 'info', 'debug'),
|
2012-05-09 05:05:06 +00:00
|
|
|
'file' => 'debug',
|
|
|
|
));
|
|
|
|
CakeLog::config('error', array(
|
|
|
|
'engine' => 'FileLog',
|
2012-10-13 06:29:25 +00:00
|
|
|
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
|
2012-05-09 05:05:06 +00:00
|
|
|
'file' => 'error',
|
|
|
|
));
|