#1 October 9, 2014 1:38pm

jmason03
Member
Registered: January 9, 2014
Posts: 123

Accessing BigTree config Variables in Custom Classes

Is it possible to access $bigtree["config"] variables in a custom class. To test I wrote a function that is just supposed to return $bigtree["config"]["js"]["minify"] but it doesn't work. Is there any way to access these variables through a class function or some other method?

Thanks

Offline

#2 October 9, 2014 1:39pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Accessing BigTree config Variables in Custom Classes

Sure -- at the top of your class method just do:

global $bigtree;

Then it'll be accessible inside the function scope.

Offline

#3 October 9, 2014 2:30pm

jmason03
Member
Registered: January 9, 2014
Posts: 123

Re: Accessing BigTree config Variables in Custom Classes

Perfect! Once again thank you guys!!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.