2006-02-25 04:42:31 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2011-03-12 17:18:21 +00:00
|
|
|
* This file is loaded automatically by the app/webroot/index.php file after core.php
|
2006-02-25 04:42:31 +00:00
|
|
|
*
|
2012-10-15 00:44:31 +00:00
|
|
|
* This file should load/create any application wide configuration settings, such as
|
2011-03-12 17:18:21 +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.
|
2006-02-25 04:42:31 +00:00
|
|
|
*
|
2009-05-01 17:03:30 +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)
|
2006-02-25 04:42:31 +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
|
2006-02-25 04:42:31 +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-05-01 17:03:30 +00:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
2011-10-14 19:06:36 +00:00
|
|
|
* @package app.Config
|
2008-10-30 17:30:26 +00:00
|
|
|
* @since CakePHP(tm) v 0.10.8.2117
|
2013-05-30 22:11:14 +00:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
2006-02-25 04:42:31 +00:00
|
|
|
*/
|
2009-07-25 22:17:27 +00:00
|
|
|
|
2013-02-03 19:00:32 +00:00
|
|
|
// Setup a 'default' cache configuration for use in the application.
|
2011-03-12 17:18:21 +00:00
|
|
|
Cache::config('default', array('engine' => 'File'));
|
|
|
|
|
2006-02-25 04:42:31 +00:00
|
|
|
/**
|
2009-05-01 17:03:30 +00:00
|
|
|
* The settings below can be used to set additional paths to models, views and controllers.
|
2006-02-25 04:42:31 +00:00
|
|
|
*
|
2009-07-25 22:17:27 +00:00
|
|
|
* App::build(array(
|
2013-07-22 11:51:09 +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
|
|
|
* ));
|
2006-02-25 04:42:31 +00:00
|
|
|
*
|
|
|
|
*/
|
2009-07-25 22:17:27 +00:00
|
|
|
|
2006-03-19 03:26:43 +00:00
|
|
|
/**
|
2013-09-24 01:06:38 +00:00
|
|
|
* Custom Inflector rules can be set to correctly pluralize or singularize table, model, controller names or whatever other
|
2011-07-07 07:04:22 +00:00
|
|
|
* string is passed to the inflection functions
|
2006-03-19 03:26:43 +00:00
|
|
|
*
|
2009-08-02 01:13:37 +00:00
|
|
|
* Inflector::rules('singular', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
|
|
|
|
* Inflector::rules('plural', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
|
2006-03-19 03:26:43 +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
|
2013-09-24 01:06:38 +00:00
|
|
|
* Uncomment one of the lines below, as you need. Make sure you read the documentation on CakePlugin to use more
|
2011-07-07 07:04:22 +00:00
|
|
|
* advanced ways of loading plugins
|
|
|
|
*
|
|
|
|
* CakePlugin::loadAll(); // Loads all plugins at once
|
|
|
|
* CakePlugin::load('DebugKit'); //Loads a single plugin named DebugKit
|
|
|
|
*
|
2011-09-21 00:16:06 +00:00
|
|
|
*/
|
2012-04-17 05:12:18 +00:00
|
|
|
|
|
|
|
/**
|
2013-09-24 01:06:38 +00:00
|
|
|
* You can attach event listeners to the request lifecycle as Dispatcher Filter. By default CakePHP bundles two filters:
|
2012-04-17 05:12:18 +00:00
|
|
|
*
|
|
|
|
* - 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.
|
2012-04-22 21:37:43 +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-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(
|
2013-09-05 14:07:41 +00:00
|
|
|
'engine' => 'File',
|
2012-05-09 05:05:06 +00:00
|
|
|
'types' => array('notice', 'info', 'debug'),
|
|
|
|
'file' => 'debug',
|
|
|
|
));
|
|
|
|
CakeLog::config('error', array(
|
2013-09-05 14:07:41 +00:00
|
|
|
'engine' => 'File',
|
2012-05-11 11:31:55 +00:00
|
|
|
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
|
2012-05-09 05:05:06 +00:00
|
|
|
'file' => 'error',
|
|
|
|
));
|