Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP ROOT constant

The CakePHP ROOT constant, where should it point to?

like image 827
powtac Avatar asked Dec 04 '25 17:12

powtac


2 Answers

ROOT should be set to the path of the directory that contains your app folder.

like image 174
bancer Avatar answered Dec 06 '25 07:12

bancer


ROOT Constant is defined in webroot/index.php

and by default it gives the full path to the directory which holds "app", WITHOUT a trailing DS

means "D:\xampp\htdocs\cake2.2.1" if my cakePHP set up resides in Cake2.2.1 directory on xampp

like image 45
Jhanvi Avatar answered Dec 06 '25 07:12

Jhanvi