I define a constant
- Code: Select all
define('INCDIR','/includes');
Then, includes are used as such:
- Code: Select all
include(INCDIR.DIRECTORY_SEPARATOR."myinclude.php");
In the code explorer I can't open the file (listed under Includes) because it says my include is :
INCDIR.DIRECTORY_SEPARATOR."myinclude.php"
which cannot be opened.
I would like it if the php constants (EG: DIRECTORY_SEPARATOR) as well as my defines were to be processed so it would build a proper links to those files.
At least as a first step without having to backtrace code, it would only show a string or variable name.
EG:
in the case above, you would see:
- Code: Select all
/includes/myinclude.php
However if I use $includefile variable instead of a sting value as part of the name, I'd get this:
- Code: Select all
/includes/$includefile
which, of course, I wouldn't expect to be able to open since backtracing that $variable means a whole other thing.
It would also be nice to use this as a tool tip over them in code to quickly see their definition as well.
Thanks!