From fe569ecdf8f993fc6ea8add53a904f40538a58fb Mon Sep 17 00:00:00 2001 From: gwoo Date: Sat, 25 Jul 2009 15:17:27 -0700 Subject: [PATCH] updating bootstrap comments --- app/config/bootstrap.php | 25 ++++++---- .../libs/templates/skel/config/bootstrap.php | 46 ++++++++++--------- 2 files changed, 40 insertions(+), 31 deletions(-) diff --git a/app/config/bootstrap.php b/app/config/bootstrap.php index 92414723707..2c9b9f45d65 100644 --- a/app/config/bootstrap.php +++ b/app/config/bootstrap.php @@ -20,22 +20,27 @@ * @since CakePHP(tm) v 0.10.8.2117 * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ + /** * The settings below can be used to set additional paths to models, views and controllers. * This is related to Ticket #470 (https://trac.cakephp.org/ticket/470) * - * $modelPaths = array('/full/path/to/models/', '/next/full/path/to/models/'); - * $viewPaths = array('/full/path/to/views/', '/next/full/path/to/views/'); - * $controllerPaths = array(/full/path/to/controllers/', '/next/full/path/to/controllers/'); - * $pluginPaths = array('/full/path/to/plugins/', '/next/full/path/to/plugins/'); - * $behaviorPaths = array('/full/path/to/behaviors/', '/next/full/path/to/behaviors/'); - * $componentPaths = array('/full/path/to/components/', '/next/full/path/to/components/'); - * $helperPaths = array('/full/path/to/helpers/', '/next/full/path/to/helpers/'); - * $vendorPaths = array('/full/path/to/vendors/', '/next/full/path/to/vendors/'); - * $shellPaths = array('/full/path/to/shells/', '/next/full/path/to/shells/'); - * $localePaths = array('/full/path/to/locale/', '/next/full/path/to/locale/'; + * App::build(array( + * 'plugins' => array('/full/path/to/plugins/', '/next/full/path/to/plugins/'), + * 'models' => array('/full/path/to/models/', '/next/full/path/to/models/'), + * 'views' => array('/full/path/to/views/', '/next/full/path/to/views/'), + * 'controllers' => array(/full/path/to/controllers/', '/next/full/path/to/controllers/'), + * 'datasources' => array('/full/path/to/datasources/', '/next/full/path/to/datasources/'), + * 'behaviors' => array('/full/path/to/behaviors/', '/next/full/path/to/behaviors/'), + * 'components' => array('/full/path/to/components/', '/next/full/path/to/components/'), + * 'helpers' => array('/full/path/to/helpers/', '/next/full/path/to/helpers/'), + * 'vendors' => array('/full/path/to/vendors/', '/next/full/path/to/vendors/'), + * 'shells' => array('/full/path/to/shells/', '/next/full/path/to/shells/'), + * 'locales' => array('/full/path/to/locale/', '/next/full/path/to/locale/') + * )); * */ + /** * As of 1.3, additional rules for the inflector are added below * diff --git a/cake/console/libs/templates/skel/config/bootstrap.php b/cake/console/libs/templates/skel/config/bootstrap.php index 9c1816662f4..d0dcb91e5d5 100644 --- a/cake/console/libs/templates/skel/config/bootstrap.php +++ b/cake/console/libs/templates/skel/config/bootstrap.php @@ -1,47 +1,51 @@ array('/full/path/to/plugins/', '/next/full/path/to/plugins/'), + * 'models' => array('/full/path/to/models/', '/next/full/path/to/models/'), + * 'views' => array('/full/path/to/views/', '/next/full/path/to/views/'), + * 'controllers' => array(/full/path/to/controllers/', '/next/full/path/to/controllers/'), + * 'datasources' => array('/full/path/to/datasources/', '/next/full/path/to/datasources/'), + * 'behaviors' => array('/full/path/to/behaviors/', '/next/full/path/to/behaviors/'), + * 'components' => array('/full/path/to/components/', '/next/full/path/to/components/'), + * 'helpers' => array('/full/path/to/helpers/', '/next/full/path/to/helpers/'), + * 'vendors' => array('/full/path/to/vendors/', '/next/full/path/to/vendors/'), + * 'shells' => array('/full/path/to/shells/', '/next/full/path/to/shells/'), + * 'locales' => array('/full/path/to/locale/', '/next/full/path/to/locale/') + * )); * */ /** - * The settings below can be used to set additional paths to models, views and controllers. - * This is related to Ticket #470 (https://trac.cakephp.org/ticket/470) + * As of 1.3, additional rules for the inflector are added below * - * $modelPaths = array('full path to models', 'second full path to models', 'etc...'); - * $viewPaths = array('this path to views', 'second full path to views', 'etc...'); - * $controllerPaths = array('this path to controllers', 'second full path to controllers', 'etc...'); + * Inflector::rule('singular', array('rules' => array(), irregular' => array(), 'uninflected' => array())); + * Inflector::rule('plural', array('rules' => array(), 'irregular' => array(), 'uninflected' => array())); * */ -//EOF ?> \ No newline at end of file