CakePHP ROOT Constant

CakePHP constant ROOT, where should it point to?

+3
source share
3 answers

The ROOT constant is defined in webroot / index.php

and by default it gives the full path to the directory that contains "app"WITHOUT the final DS

means "D:\xampp\htdocs\cake2.2.1"if my installation cakePHPis in a directory Cake2.2.1onxampp

+2
source

According to docs it

parent directory name for the base index.php CakePHP.

+1
source

Source: https://habr.com/ru/post/1747886/


All Articles