Diem plugins syndication

dmConfigOverriderPlugin

Override symfony app_* config through the admin panel

Sometimes, we want to be able to change some symfony config from the admin panel.

This very simple plugin allows you to override any sfConfig app_* from the System > Configuration > Settings panel.
You just have to create a new setting starting with the app_ prefix.

Installation

  • In a console, from your project root dir, run:
git clone git://github.com/jeremyfa/dmConfigOverriderPlugin.git plugins/dmConfigOverriderPlugin  
  • In config/ProjectConfiguration.class.php, add dmConfigOverriderPlugin to the list of enabled plugins:
class ProjectConfiguration extends dmProjectConfiguration
{  
  public function setup()  
  {  
    parent::setup();  
 
    $this->enablePlugins(array(  
      // your enabled plugins  
      'dmConfigOverriderPlugin'  
    ));  
  • In a console, from your project root dir, run:
php symfony dm:setup  

Sometimes, we want to be able to change some symfony config from the admin panel.

This very simple plugin allows you to override any sfConfig app_* from the System > Configuration > Settings panel.
You just have to create a new setting starting with the app_ prefix.

If you want to override a app_ setting in only one application (front application for example). You can do it by using the app::front_ prefix.

If you want for example to enable recaptcha from the admin panel in the front application, you will create a app::front_recaptcha_enabled setting and set it to true.

    Add a comment

    Impossible to fetch issues for this plugin.
    Impossible to get this plugin changelog.

    dmConfigOverriderPlugin, created on March 26, 2010 by jeremyfa, used by 15 projects

    Fork Diem on GitHub