• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XenForo_Helper_File or XenForo_Application to get path to root


Well-known member

Are there documents or posts showing more information regarding this? A search on this site brings up 2010 discussions. A search in the code doesn't show anything obvious ... *

Specifically, I'm trying to figure out how to get the XenForo root installation. I can get the data root

echo XenForo_Helper_File::getExternalDataPath();
But I'd like to get the root and not the data path.

Thank you.

* Anything obvious ... like the $fileDir :(



Well-known member
Ugh. I thought this was tried but just added it in to the plugin and works.

Thanks again xf. You are the best.