@mattab opened this issue on January 3rd 2008

We have to make it easy for plugins to have their own Configuration file, the same way they have their own translation file, etc.

@mattab commented on November 20th 2008

now available via the Option table; better solution than having an option file by plugin. see function Piwik_GetOption($name) and function Piwik_UpdateOption($name, $value, $autoload = 0)

in https://github.com/piwik/piwik/blob/master/core/Option.php

@mattab commented on August 13th 2009

I believe we just need to write a small FAQ question about how to store and get values like in a config file, using the option mechanism.

@robocoder commented on February 27th 2010

Can we add a cache layer to this? I envision future tracker plugins may want to access their configuration.

@mattab commented on July 22nd 2010

Actually it is best not to make it easy for plugin to have config file, or they might be misused. Settings should be stored in the DB using Piwik_SetOption helper, and settings should be editable in the UI. For other constants and magic numbers, fine to have them as class internals.

This issue was closed on July 22nd 2010
Powered by GitHub Issue Mirror