How to get the path of the current class, from an inherited method?
I have the following:
getDir(); } } $tmp = new Child(); // output: '/childDir' ?>
Please not that if you need to get the dir, directly use __DIR__.
__DIR__