2005-07-04 01:07:14 +00:00
|
|
|
<?php
|
2005-08-21 06:49:02 +00:00
|
|
|
/* SVN FILE: $Id$ */
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
2005-08-21 06:49:02 +00:00
|
|
|
* Short description for file.
|
2005-06-30 02:09:47 +00:00
|
|
|
*
|
2005-08-21 06:49:02 +00:00
|
|
|
* In this file you set paths to different directories used by Cake.
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
|
|
|
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
|
|
|
* Copyright (c) 2005, CakePHP Authors/Developers
|
|
|
|
*
|
|
|
|
* Author(s): Michal Tatarynowicz aka Pies <tatarynowicz@gmail.com>
|
|
|
|
* Larry E. Masters aka PhpNut <nut@phpnut.com>
|
|
|
|
* Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
|
|
|
* @filesource
|
|
|
|
* @author CakePHP Authors/Developers
|
|
|
|
* @copyright Copyright (c) 2005, CakePHP Authors/Developers
|
|
|
|
* @link https://trac.cakephp.org/wiki/Authors Authors/Developers
|
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.config
|
|
|
|
* @since CakePHP v 0.2.9
|
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
2005-06-30 02:09:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If the index.php file is used instead of an .htaccess file
|
|
|
|
* or if the user can not set the web root to use the public
|
|
|
|
* directory we will define ROOT there, otherwise we set it
|
|
|
|
* here.
|
|
|
|
*/
|
|
|
|
if(!defined('ROOT'))
|
|
|
|
{
|
2005-09-29 17:29:00 +00:00
|
|
|
define('ROOT', '../');
|
2005-06-30 02:09:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the application's directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('APP', ROOT.'app'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the application's models directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('MODELS', APP.'models'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the application's controllers directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('CONTROLLERS', APP.'controllers'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the application's helpers directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('HELPERS', APP.'helpers'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the application's views directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('VIEWS', APP.'views'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the application's view's layouts directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('LAYOUTS', APP.'views'.DS.'layouts'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the application's view's elements directory.
|
|
|
|
* It's supposed to hold pieces of PHP/HTML that are used on multiple pages
|
|
|
|
* and are not linked to a particular layout (like polls, footers and so on).
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('ELEMENTS', APP.'views'.DS.'elements'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the configuration files directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('CONFIGS', ROOT.'config'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the libs directory.
|
|
|
|
*/
|
|
|
|
define ('LIBS', ROOT.'libs'.DS);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the logs directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('LOGS', ROOT.'logs'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the modules directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('MODULES', ROOT.'modules'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the public directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('WWW_ROOT', ROOT.'public'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the public directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('CSS', WWW_ROOT.'css'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the scripts direcotry.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('SCRIPTS', ROOT.'scripts'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the tests directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('TESTS', ROOT.'tests'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the controller test directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('CONTROLLER_TESTS', TESTS.'app'.DS.'controllers'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the helpers test directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('HELPER_TESTS', TESTS.'app'.DS.'helpers'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the models' test directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('MODEL_TESTS', TESTS.'app'.DS.'models'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the lib test directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('LIB_TESTS', TESTS.'libs'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the temporary files directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('TMP', ROOT.'tmp'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the cache files directory. It can be shared between hosts in a multi-server setup.
|
|
|
|
*/
|
|
|
|
define('CACHE', TMP.'cache'.DS);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the vendors directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('VENDORS', ROOT.'vendors'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Path to the Pear directory
|
|
|
|
* The purporse is to make it easy porting Pear libs into Cake
|
|
|
|
* without setting the include_path PHP variable.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('PEAR', VENDORS.'Pear'.DS);
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Full url prefix
|
|
|
|
*/
|
|
|
|
define('FULL_BASE_URL', 'http://'.$_SERVER['HTTP_HOST']);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Web path to the public images directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('IMAGES_URL', '/img/');
|
2005-06-30 02:09:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Web path to the CSS files directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('CSS_URL', '/css/');
|
2005-06-30 02:09:47 +00:00
|
|
|
|
2005-09-18 18:58:45 +00:00
|
|
|
/**
|
|
|
|
* Web path to the js files directory.
|
|
|
|
*/
|
2005-09-29 17:29:00 +00:00
|
|
|
define('JS_URL', '/js/');
|
2005-09-18 18:58:45 +00:00
|
|
|
|
2005-09-19 17:20:24 +00:00
|
|
|
?>
|