'Find Declaration' won't find my function |
Site Admin
|
Seems you need to read php manual and check how it works in more details. In short, it's not necessary to have any include/require statements in your file and get all the functions either from "site/include/functions.php" or "include/functions.php" to be accessible. Just a trivial example: fileA includes "site/include/functions.php" and also includes your file where you call date_diff(). In this case date_diff will be called in site/include/functions.php. fileB includes "include/functions.php" and also includes your file where you call date_diff(). In this case date_diff will be called in include/functions.php. I'd recommend you to remove backup (and all other possible duplications) from the project tree. You can do this by adding its directory name into the "Hide directories" in the project properties or placing the directory into another project or at least out of current project. |
||||||||||||||
Last edited by dmitri on Fri Jan 30, 2009 7:17 am; edited 1 time in total _________________ The PHP IDE team |
|
Please do not think to teach me php.
I know very well functions are global, but if there is an include file in the current file phped should check if that file includes the function so I don't go back and forth for almost an hour checking why the code didn't update |
||||||||||||
|
Site Admin
|
IDE can not distiguish if include "include/functions.php" actually includes "site/include/functions.php" or "include/functions.php". For example you might have "site" directory in your include_path setting in php.ini and therefore include would find "site/include/functions.php". |
||||||||||||||
_________________ The PHP IDE team |
'Find Declaration' won't find my function |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by