paths.php
Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 if (!defined('ROOT')) {
00036 define ('ROOT', '../');
00037 }
00038 if (!defined('WEBROOT_DIR')) {
00039 define ('WEBROOT_DIR', 'webroot');
00040 }
00041
00042
00043
00044 define ('CAKE', CORE_PATH.'cake'.DS);
00045
00046
00047
00048 if (!defined('APP')) {
00049 define ('APP', ROOT.DS.APP_DIR.DS);
00050 }
00051
00052
00053
00054 define ('MODELS', APP.'models'.DS);
00055
00056
00057
00058 define ('BEHAVIORS', MODELS.'behaviors'.DS);
00059
00060
00061
00062 define ('CONTROLLERS', APP.'controllers'.DS);
00063
00064
00065
00066 define ('COMPONENTS', CONTROLLERS.'components'.DS);
00067
00068
00069
00070 define ('VIEWS', APP.'views'.DS);
00071
00072
00073
00074 define ('HELPERS', VIEWS.'helpers'.DS);
00075
00076
00077
00078 define ('LAYOUTS', VIEWS.'layouts'.DS);
00079
00080
00081
00082
00083
00084 define ('ELEMENTS', VIEWS.'elements'.DS);
00085
00086
00087
00088 if (!defined('CONFIGS')) {
00089 define ('CONFIGS', APP.'config'.DS);
00090 }
00091
00092
00093
00094 define ('INFLECTIONS', CAKE.'config'.DS.'inflections'.DS);
00095
00096
00097
00098 define ('LIBS', CAKE.'libs'.DS);
00099
00100
00101
00102 define ('CSS', WWW_ROOT.'css'.DS);
00103
00104
00105
00106 define ('JS', WWW_ROOT.'js'.DS);
00107
00108
00109
00110 define ('IMAGES', WWW_ROOT.'img'.DS);
00111
00112
00113
00114 define('CONSOLE_LIBS', CAKE.'console'.DS.'libs'.DS);
00115
00116
00117
00118 if (!defined('TESTS')) {
00119 define ('TESTS', APP.'tests'.DS);
00120 }
00121
00122
00123
00124 if (!defined('CAKE_TESTS')) {
00125 define ('CAKE_TESTS', CAKE.'tests'.DS);
00126 }
00127
00128
00129
00130 define ('CAKE_TESTS_LIB', CAKE_TESTS.'lib'.DS);
00131
00132
00133
00134
00135 define ('CONTROLLER_TESTS', TESTS.'cases'.DS.'controllers'.DS);
00136
00137
00138
00139 define ('COMPONENT_TESTS', TESTS.'cases'.DS.'components'.DS);
00140
00141
00142
00143 define ('HELPER_TESTS', TESTS.'cases'.DS.'views'.DS.'helpers'.DS);
00144
00145
00146
00147 define ('MODEL_TESTS', TESTS.'cases'.DS.'models'.DS);
00148
00149
00150
00151 define ('LIB_TESTS', CAKE_TESTS.'cases'.DS.'lib'.DS);
00152
00153
00154
00155 if (!defined('TMP')) {
00156 define ('TMP', APP.'tmp'.DS);
00157 }
00158
00159
00160
00161 define ('LOGS', TMP.'logs'.DS);
00162
00163
00164
00165 define('CACHE', TMP.'cache'.DS);
00166
00167
00168
00169 if (!defined('VENDORS')) {
00170 define ('VENDORS', CAKE_CORE_INCLUDE_PATH.DS.'vendors'.DS);
00171 }
00172
00173
00174
00175
00176
00177 define ('PEAR', VENDORS.'Pear'.DS);
00178
00179
00180
00181 if (!defined('FULL_BASE_URL')) {
00182 $s = null;
00183 if (env('HTTPS')) {
00184 $s ='s';
00185 }
00186
00187 $httpHost = env('HTTP_HOST');
00188
00189 if (isset($httpHost)) {
00190 define('FULL_BASE_URL', 'http'.$s.':
00191 }
00192 unset($httpHost, $s);
00193 }
00194
00195
00196
00197 if (!defined('IMAGES_URL')) {
00198 define ('IMAGES_URL', 'img/');
00199 }
00200
00201
00202
00203 if (!defined('CSS_URL')) {
00204 define ('CSS_URL', 'css/');
00205 }
00206
00207
00208
00209 if (!defined('JS_URL')) {
00210 define ('JS_URL', 'js/');
00211 }
00212 ?>