|
[symfony-users] Re: How do I create a plugin specific configuration file?: msg#00877symfony-users
1 - define a config_handlers.yml on the plugin config dir with something like: config/json_services.yml: class: sfDefineEnvironmentConfigHandler param: prefix: json_services_ This will register sfDefineEnvironmentConfigHandler as the handler for the json_services.yml files. It also define the prefix to be prepended to the vars. If any such yml is found the corresponding php will be generated, but the values wont be appended to the sfConfig array. 2 So you have to include it using: include($this->getConfigCache()->checkConfig('config/json_services.yml')); on the plugin´s config.php file. And that is it! it will work with any json_services.yml defined. Very nice. 2009/7/30 Bruno Reis <bruno.p.reis@xxxxxxxxx> Thanks Daniel, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to symfony-users+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |