How to get $phpbb_root_path when not available?

Discussion forum for MOD Writers regarding MOD Development.
Locked
microUgly
Registered User
Posts: 88
Joined: Sat Jun 02, 2007 5:35 am

How to get $phpbb_root_path when not available?

Post by microUgly »

Sorry, I tried searching for this but it's such a general search there was far to many irrelevant results.

I'm writing a mod that needs to include some files within a function. The $phpbb_root_path var is not available. What's the best way to determine the root path? Should/can I just make $phpbb_root_path global?
User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Seattle, WA
Name: David Lewis
Contact:

Re: How to get $phpbb_root_path when not available?

Post by Highway of Life »

global $phpbb_root_path is the only way to go. :)
The phpBB Weekly Podcast - Discussing the developments of phpBB4 and beyond.

New to phpBB3? Want to learn about programing?
Visit phpBB Academy at StarTrekGuide to learn how.
microUgly
Registered User
Posts: 88
Joined: Sat Jun 02, 2007 5:35 am

Re: How to get $phpbb_root_path when not available?

Post by microUgly »

Thanks :)
Locked

Return to “[3.0.x] MOD Writers Discussion”