#1 April 1, 2013 7:08pm

JeredOdegard
Member
Registered: March 29, 2013
Posts: 12

Appending to $bigtree["config"]

Is it possible to append additional arrays to $bigtree["config"] by adding lines in your /template/config.php and access them in core files like /core/inc/bigtree ? I can't seem to retrieve any of the values added. Perhaps there is a separate configuration for core?

Offline

#2 April 1, 2013 7:26pm

benplum
Administrator
Registered: March 30, 2012
Posts: 54

Re: Appending to $bigtree["config"]

You should be able to access any custom variables you set in the $bigtree array, even if you set them in a template. Also, don't forget to duplicate any files you with to edit from core into the same directory tree in custom so upgrades go smoothly.

Offline

#3 April 1, 2013 7:31pm

JeredOdegard
Member
Registered: March 29, 2013
Posts: 12

Re: Appending to $bigtree["config"]

Nevermind. I figured it out. I had to add global $bigtree;  to access it within that scope. Thanks for the advice on the duplication though.

Offline

#4 April 1, 2013 7:40pm

benplum
Administrator
Registered: March 30, 2012
Posts: 54

Re: Appending to $bigtree["config"]

Offline

Board footer

Powered by FluxBB

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