[FLOW3-general] How to retrieve root path or (better) path to package in a controller

Jens Hopp flow3 at hopp-it.de
Thu Nov 3 15:42:42 CET 2011


Hi.

I would like to render some yaml files in a controller.
How can I retrieve the root path or (better) the path to the package the 
controller resides in?

At the moment I do it like that:

global $rootPath; //PFUI!!!

...but ...uuuhh...I included my personal comment (for all german 
speaking) ... ;-)

Is there a better way?

Thanks
Jens


More information about the FLOW3-general mailing list