UBB.Dev
Posted By: RandyJG Other variables in config file - 08/03/2003 7:03 PM
How do I use the other section of the config to add my own variables properly?

I tried to add this:

$myvar = 20;

But then it doesn't appear the next time config is edited, and gets wiped out when resaving.

v6.2
Posted By: Zackary Re: Other variables in config file - 08/03/2003 7:27 PM
How about this?

$config['myvar'] = '20';

I have a number of custom variables like this, and this is how I've added them.
Posted By: RandyJG Re: Other variables in config file - 08/08/2003 5:39 PM
That was the problem, thanks.
Posted By: Zackary Re: Other variables in config file - 08/08/2003 7:10 PM
Happy to help.
© UBB.Developers