Symfony 1.2: sfDbConfigPlugin, a sfConfig Counterpart
Symfony has a file based configuration, and with sfDbConfigPlugin, it can handle a database based configuration. sfDbConfigPlugin provide the following feature: sfDbConfig class sfDbConfig class provide a counterpart methods of sfConfig class: sfDbConfig::set(‘MYSETTING::TEST’, ‘test value’); // set the value sfDbConfig::get(‘MYSETTING::TEST’, ‘default’); // get the value, return ‘default’ if not defined $exist = sfDbConfig::has(‘MYSETTING::TEST’); // check …
Read more “Symfony 1.2: sfDbConfigPlugin, a sfConfig Counterpart”