have a tree project:
/index.php
/../code/config/const.php
in the file
index.php:
...
define('SS_ROOT', __DIR__ . '/../code/');
define('ROOT_CODE', SS_ROOT);
require(ROOT_CODE."config/const.php");
...
|
in the file
const.php:
...
define('SS_CONFIG_DIR', ROOT_CODE . 'config/');
define('SS_ROOT_CLASSES', ROOT_CODE . 'class/');
... |
run debugger in CLI.
mistake in the ad, the constants SS_CONFIG_DIR and SS_ROOT_CLASSES not declared,
in the "Watch", after the data lines of code debugger
SS_CONFIG_DIR = SS_CONFIG_DIR
SS_ROOT_CLASSES = SS_ROOT_CLASSES
but constants SS_ROOT and ROOT_CODE normally declared