How to get the path of the current class, from an inherited method?
I have the following:
Yes. Building on Palantir's answer:
class Parent { protected function getDir() { $rc = new ReflectionClass(get_class($this)); return dirname($rc->getFileName()); } }