'File')); /** * The settings below can be used to set additional paths to models, views and controllers. * * App::build(array( * 'Plugin' => array('/full/path/to/plugins/', '/next/full/path/to/plugins/'), * 'Model' => array('/full/path/to/models/', '/next/full/path/to/models/'), * 'View' => array('/full/path/to/views/', '/next/full/path/to/views/'), * 'Controller' => array('/full/path/to/controllers/', '/next/full/path/to/controllers/'), * 'Model/Datasource' => array('/full/path/to/datasources/', '/next/full/path/to/datasources/'), * 'Model/Behavior' => array('/full/path/to/behaviors/', '/next/full/path/to/behaviors/'), * 'Controller/Component' => array('/full/path/to/components/', '/next/full/path/to/components/'), * 'View/Helper' => array('/full/path/to/helpers/', '/next/full/path/to/helpers/'), * 'Vendor' => array('/full/path/to/vendors/', '/next/full/path/to/vendors/'), * 'Console/Command' => array('/full/path/to/shells/', '/next/full/path/to/shells/'), * 'Locale' => array('/full/path/to/locale/', '/next/full/path/to/locale/') * )); * */ /** * 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 * * Inflector::rules('singular', array('rules' => array(), 'irregular' => array(), 'uninflected' => array())); * Inflector::rules('plural', array('rules' => array(), 'irregular' => array(), 'uninflected' => array())); * */ /** * 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 * */ /** * 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. * array('callbale' => $aFunction, 'on' => 'before', 'priority' => 9), // A valid PHP callback type to be called on beforeDispatch * array('callbale' => $anotherMethod, 'on' => 'after'), // A valid PHP callback type to be called on afterDispatch * * )); */ Configure::write('Dispatcher.filters', array( 'AssetDispatcher', 'CacheDispatcher' ));