Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#2871 closed New feature (fixed)

Add plugin-specific config loader

Reported by: vipsoft Owned by: vipsoft
Priority: normal Milestone: 1.7 Piwik 1.7
Component: Core Keywords:
Cc: Sensitive: no


Add support for plugins to be able to load their own config files. This allows plugins to be increasingly self-contained in their own folder.

  • modify ExamplePlugin to add config folder
  • default config file name will be local.config.php

Change History (2)

comment:1 Changed 2 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5684]) fixes #2871 - add plugin-specific config file loader

Also refactored ExamplePlugin to be a better example.

  • 1 class per file
  • add config folder with .htaccess
  • add tests folder with some unit tests

comment:2 Changed 2 years ago by vipsoft (robocoder)

(In [5685]) refs #2871 - svn ignore local.config.php; use PIWIK_USER_PATH instead of PIWIK_INCLUDE_PATH

Note: See TracTickets for help on using tickets.