bootstrap.php

Go to the documentation of this file.
00001 <?php
00002 /* SVN FILE: $Id: cake_2bootstrap_8php-source.html 580 2008-07-01 14:45:49Z gwoo $ */
00003 /**
00004  * Basic Cake functionality.
00005  *
00006  * Core functions for including other source files, loading models and so forth.
00007  *
00008  * PHP versions 4 and 5
00009  *
00010  * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
00011  * Copyright 2005-2008, Cake Software Foundation, Inc.
00012  *                              1785 E. Sahara Avenue, Suite 490-204
00013  *                              Las Vegas, Nevada 89104
00014  *
00015  * Licensed under The MIT License
00016  * Redistributions of files must retain the above copyright notice.
00017  *
00018  * @filesource
00019  * @copyright       Copyright 2005-2008, Cake Software Foundation, Inc.
00020  * @link                http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
00021  * @package         cake
00022  * @subpackage      cake.cake
00023  * @since           CakePHP(tm) v 0.2.9
00024  * @version         $Revision: 580 $
00025  * @modifiedby      $LastChangedBy: gwoo $
00026  * @lastmodified    $Date: 2008-07-01 09:45:49 -0500 (Tue, 01 Jul 2008) $
00027  * @license         http://www.opensource.org/licenses/mit-license.php The MIT License
00028  */
00029 if (!defined('PHP5')) {
00030     define ('PHP5', (phpversion() >= 5));
00031 }
00032 /**
00033  * Configuration, directory layout and standard libraries
00034  */
00035     if (!isset($bootstrap)) {
00036         require CORE_PATH . 'cake' . DS . 'basics.php';
00037         $TIME_START = getMicrotime();
00038         require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
00039         require LIBS . 'object.php';
00040         require LIBS . 'inflector.php';
00041         require LIBS . 'configure.php';
00042     }
00043     require LIBS . 'file.php';
00044     require LIBS . 'cache.php';
00045 
00046     Configure::getInstance();
00047 
00048     $url = null;
00049 
00050     App::import('Core', array('Session', 'Security', 'String', 'Dispatcher'));
00051 ?>