I have a few things in various different files that get called from different places. I've been trying to use a $ROOT variable, but because I'm going from a few different files (index.php, view.php, admin/index.php etc) and don't have a bootstrap(or whatever that's called), I can't always get to $ROOT from things called by ajax etc..
if I set the include_path via htaccess somewhat like:
php_value include_path ".;C:\wamp\www\project\"
I assume that doesn't include subdirectories, and I would also have to add a line for each other directory where my files reside even if they're in C:\wamp\www\project\components
or C:\wamp\www\project\model
?
And do I add new lines or commas? I can't find any example online of using the htaccess to set include paths with multiple paths...
Alternately is there a way to get everything relating to my $ROOT variable and use absolute paths, and somehow have every file, even if they're in different places, reference that particular variable? (without having to make wholesale changes to all the files in the app?) That has the benefit of only needing to change on file in a server change/deployment, but I do not know how to start going about it!
thanks :)