I have a config file that I include early in my program and set this
define('BASE_SLUG','/shop');
I include another file later with these lines
echo BASE_SLUG;
if (defined(BASE_SLUG)) {
echo ' - yes';
} else {
echo ' - no';
}
And my output is
/shop - no
how is this possible? BASE_SLUG
has the value of /shop
and I can echo it, but one line later it says it is not defined