Permalink
Browse files

updating bootstrap comments

  • Loading branch information...
1 parent cfb4602 commit fe569ecdf8f993fc6ea8add53a904f40538a58fb gwoo committed Jul 25, 2009
Showing with 40 additions and 31 deletions.
  1. +15 −10 app/config/bootstrap.php
  2. +25 −21 cake/console/libs/templates/skel/config/bootstrap.php
View
@@ -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
*
@@ -1,47 +1,51 @@
<?php
-/* SVN FILE: $Id$ */
-
/**
- * Short description for file.
+ * This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php
*
- * Long description for file
+ * This is an application wide file to load any function that is not used within a class
+ * define. You can also use this to include or require any files in your application.
*
* PHP versions 4 and 5
*
- * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
- * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2008, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @filesource
- * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
- * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
+ * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
* @package cake
* @subpackage cake.app.config
* @since CakePHP(tm) v 0.10.8.2117
- * @version $Revision$
- * @modifiedby $LastChangedBy$
- * @lastmodified $Date$
* @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)
*
- * This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php is loaded
- * This is an application wide file to load any function that is not used within a class define.
- * You can also use this to include or require any files in your application.
+ * 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/')
+ * ));
*
*/
/**
- * 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
?>

0 comments on commit fe569ec

Please sign in to comment.