[geeklog-devel] [geeklog-cvs] Geeklog-1.x/system/classes config.class.php, 1.9, 1.10

Aaron Blankstein blanks at mit.edu
Sun Dec 30 11:45:11 EST 2007


That's close - you need to be adding your config options to the database
somehow -
if you take a look at the staticpages config.php file, you'll see how to do
this.

I'm going to be updating the wikidocs pretty soon, as well.

-- Aaron

On Dec 30, 2007 2:20 AM, Joe Mucchiello <joe at throwingdice.com> wrote:


> At 07:11 PM 12/29/2007, Aaron Blankstein wrote:

>

> First, is this basically all I need to be compatible with 1.4.1 and 1.5?

>

> // if class exists, load config from DB

> if (class_exists('config')) {

> $_CA_CONF = config->get_instance()->get_config('calendar');

> }

> // still no config? load the file.

> if (empty($_CA_CONF)) {

> require_once ($_CONF['path'] . 'plugins/calendar/config.php');

> }

>

> I'm not sure I like the idea that the entire config data is loaded at

> once. Makes me think it might be faster to serialize the whole thing

> to a file and just load it back from the file. But then I'm into

> caches. More to follow....

>

>

> ----

> Joe Mucchiello

> Throwing Dice Games

> http://www.throwingdice.com

>

> _______________________________________________

> geeklog-devel mailing list

> geeklog-devel at lists.geeklog.net

> http://eight.pairlist.net/mailman/listinfo/geeklog-devel

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://eight.pairlist.net/pipermail/geeklog-devel/attachments/20071230/e82baa36/attachment.html>


More information about the geeklog-devel mailing list