228vit / my-config-plugin
Symfony 1.4+ plugin. Make all settings editable from backend
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony1-plugin
Requires
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2024-12-25 10:54:58 UTC
README
Yet another alternative setting plugin * Installation $ git submodule add git://github.com/228vit/myConfigPlugin.git plugins/myConfigPlugin $ git submodule init $ git submodule update $ symfony doctrine:generate-migrations-diff $ symfony doctrine:generate-migrate * Enable plugin in config/ProjectConfiguration.class.php {{{ class ProjectConfiguration extends sfProjectConfiguration { public function setup() { $this->enablePlugin('myConfigPlugin'); }}} * Usage {{{ myConfig::get(settingName, settingDefaultValue, settingNote); }}} Please note, if setting does not exists, new one will be created with default value. * Manage settings in admin Enable admin module in setting.yml $ symfony doctrine:generate-admin backend Config backend.php/config * Dump all setting into sfConfig Edit apps/appName/config/filters.yml myConfig: class: myConfigFilter