• 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

LPH

Well-known member
#1
Hi,

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

Code:
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 :(

Code:
XenForo_Application::initialize($fileDir......);
 

LPH

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

Thanks again xf. You are the best.