Skip to content
This repository
Newer
Older
100644 55 lines (54 sloc) 1.848 kb
e1f48bf3 » phpnut
2005-07-04 going thru trunk and cleaning up the file headers so API docs can be …
1 <?php
cd865555 » phpnut
2005-05-15 moving cake to a sub directory
2 /**
6baaa112 » phpnut
2005-10-18 [1125]
3 * Requests collector.
81880619 » phpnut
2006-02-16 Merging fixes and enhancements into trunk
4 *
4234bc94 » pies
2005-05-29 I've added some fixes and new methods, hope this gets to be in the to…
5 * This file collects requests if:
e5c074a0 » phpnut
2006-05-26 Merging fixes into 1.x.x.x branched code:
6 * - no mod_rewrite is avilable or .htaccess files are not supported
15518b8c » gwoo
2009-05-01 merging 1.3-misc into master
7 * - requires App.baseUrl to be uncommented in app/config/core.php
8 * - app/webroot is not set as a document root.
fbf4d9ee » phpnut
2005-08-21 merging code from sandboxes since [430]
9 *
10 * PHP versions 4 and 5
11 *
15518b8c » gwoo
2009-05-01 merging 1.3-misc into master
12 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
527eec1a » markstory
2010-01-26 Fixing doc tags to make merge easier.
13 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
fbf4d9ee » phpnut
2005-08-21 merging code from sandboxes since [430]
14 *
c7d02c80 » phpnut
2005-12-23 Merging changes to the trunk.
15 * Licensed under The MIT License
16 * Redistributions of files must retain the above copyright notice.
fbf4d9ee » phpnut
2005-08-21 merging code from sandboxes since [430]
17 *
527eec1a » markstory
2010-01-26 Fixing doc tags to make merge easier.
18 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
19 * @link http://cakephp.org CakePHP(tm) Project
3f2fa692 » AD7six
2008-10-30 changing tabs for spaces in comment block indentation
20 * @package cake
21 * @since CakePHP(tm) v 0.2.9
15518b8c » gwoo
2009-05-01 merging 1.3-misc into master
22 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
4a87a753 » pies
2005-05-22 - Two standard controllers -- PageController and TestsController
23 */
24 /**
4234bc94 » pies
2005-05-29 I've added some fixes and new methods, hope this gets to be in the to…
25 * Get Cake's root directory
26 */
e5c074a0 » phpnut
2006-05-26 Merging fixes into 1.x.x.x branched code:
27 define('APP_DIR', 'app');
28 define('DS', DIRECTORY_SEPARATOR);
29 define('ROOT', dirname(__FILE__));
30 define('WEBROOT_DIR', 'webroot');
31 define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);
81880619 » phpnut
2006-02-16 Merging fixes and enhancements into trunk
32 /**
15518b8c » gwoo
2009-05-01 merging 1.3-misc into master
33 * This only needs to be changed if the "cake" directory is located
34 * outside of the distributed structure.
35 * Full path to the directory containing "cake". Do not add trailing directory separator
81880619 » phpnut
2006-02-16 Merging fixes and enhancements into trunk
36 */
e5c074a0 » phpnut
2006-05-26 Merging fixes into 1.x.x.x branched code:
37 if (!defined('CAKE_CORE_INCLUDE_PATH')) {
38 define('CAKE_CORE_INCLUDE_PATH', ROOT);
39 }
15518b8c » gwoo
2009-05-01 merging 1.3-misc into master
40
41 /**
42 * Set the include path or define app and core path
43 */
e5c074a0 » phpnut
2006-05-26 Merging fixes into 1.x.x.x branched code:
44 if (function_exists('ini_set')) {
15518b8c » gwoo
2009-05-01 merging 1.3-misc into master
45 ini_set('include_path',
46 ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH
47 . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS
48 );
e5c074a0 » phpnut
2006-05-26 Merging fixes into 1.x.x.x branched code:
49 define('APP_PATH', null);
50 define('CORE_PATH', null);
51 } else {
52 define('APP_PATH', ROOT . DS . APP_DIR . DS);
53 define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
54 }
549d86ac » phpnut
2007-07-25 Refactoring dispatcher.
55 require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
Something went wrong with that request. Please try again.