Re: [Components] ezcConfiguration and multiple configuration files having the same name
On Mon, 30 Mar 2009, Thomas, Maxime wrote: On Mon, 30 Mar 2009, Derick Rethans wrote: On Tue, 24 Mar 2009, Derick Rethans wrote: This could be broken caching, would you care to file a report so that we can track this? I'll have a look at it then. I've had a look at the issue (and code now) and realized that this is not a bug. If you init the manager, it re-sets the previous configuration. This is what it is supposed to do. Are you trying to setup some kind of fallback mechanism here? If so, we don't support that yet, but it sounds like a good addition. Yes, I guess it's my ez coloration... By the way, you explain me that if I reset the manager with a new init call, I'm able to reach new settings of the new set configuration. But it's not working; I can't access settings on the new configuration once it has been initialized. I just checked that, and you're right. However, we provide the -reset() method to fix this, which can be a workaround. I however have addressed the issue in in SVN. I also added an issue for a fallback form of reading configuration files, but that's marked as a feature request for now: http://issues.ez.no/IssueView.php?Id=14709 regards, -- Derick Rethans eZ components Product Manager eZ systems | http://ez.no -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components
Re: [Components] ezcConfiguration and multiple configuration files having the same name
On Tue, 24 Mar 2009, Derick Rethans wrote: On Tue, 24 Mar 2009, Thomas, Maxime wrote: In my index.php : $cfg = ezcConfigurationManager::getInstance(); $cfg-init( ezcConfigurationIniReader, config ); $settings = $cfg-getSettingsInGroup( standard, MainSettings); And then further in the code : $cfg = ezcConfigurationManager::getInstance(); $cfg-init( ezcConfigurationIniReader, fr/config ); $settings = $cfg-getSettingsInGroup( standard, SpecificSettings); And then, I've got an issue : SpecificSetting does not exist in the standard configuration. Apparently, it means that once you've got a declared configuration in one directory, it's set for all directories. This could be broken caching, would you care to file a report so that we can track this? I'll have a look at it then. I've had a look at the issue (and code now) and realized that this is not a bug. If you init the manager, it re-sets the previous configuration. This is what it is supposed to do. Are you trying to setup some kind of fallback mechanism here? If so, we don't support that yet, but it sounds like a good addition. regards, Derick -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components
Re: [Components] ezcConfiguration and multiple configuration files having the same name
Yes, I guess it's my ez coloration... By the way, you explain me that if I reset the manager with a new init call, I'm able to reach new settings of the new set configuration. But it's not working; I can't access settings on the new configuration once it has been initialized. Regards, Maxime THOMAS Consultant Solution - CMS OpenSource Logica - 17, place des Reflets - 92097 La Défense Cedex Mail : maxime.tho...@logica.com * -Message d'origine- De : Derick Rethans [mailto:d...@ez.no] Envoyé : lundi 30 mars 2009 12:56 À : Thomas, Maxime Cc : components@lists.ez.no Objet : Re: [Components] ezcConfiguration and multiple configuration files having the same name On Tue, 24 Mar 2009, Derick Rethans wrote: On Tue, 24 Mar 2009, Thomas, Maxime wrote: In my index.php : $cfg = ezcConfigurationManager::getInstance(); $cfg-init( ezcConfigurationIniReader, config ); $settings = $cfg-getSettingsInGroup( standard, MainSettings); And then further in the code : $cfg = ezcConfigurationManager::getInstance(); $cfg-init( ezcConfigurationIniReader, fr/config ); $settings = $cfg-getSettingsInGroup( standard, SpecificSettings); And then, I've got an issue : SpecificSetting does not exist in the standard configuration. Apparently, it means that once you've got a declared configuration in one directory, it's set for all directories. This could be broken caching, would you care to file a report so that we can track this? I'll have a look at it then. I've had a look at the issue (and code now) and realized that this is not a bug. If you init the manager, it re-sets the previous configuration. This is what it is supposed to do. Are you trying to setup some kind of fallback mechanism here? If so, we don't support that yet, but it sounds like a good addition. regards, Derick Please help Logica to respect the environment by not printing this email / Merci d'aider Logica à préserver l'environnement en évitant d'imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei die Umwelt zu schuetzen / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components
Re: [Components] ezcConfiguration and multiple configuration files having the same name
On Mon, 23 Mar 2009, Thomas, Maxime wrote: I've got an issue with the ezcConfiguration component, but maybe it's just a documentation problem. My folders are organized like this: / ---config --standard.ini --... ---fr --config -standard.ini -... And when I ask for the configuration standard with the normal code, I just get back the /config/standard.ini settings and not those from /fr/config/standard.ini. And it's the same if I set the location with the init function. Is there something I'm not doing correctly? It's hard to say without code, can you show some? regards, -- Derick Rethans eZ components Product Manager eZ systems | http://ez.no -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components
Re: [Components] ezcConfiguration and multiple configuration files having the same name
In my index.php : $cfg = ezcConfigurationManager::getInstance(); $cfg-init( ezcConfigurationIniReader, config ); $settings = $cfg-getSettingsInGroup( standard, MainSettings); And then further in the code : $cfg = ezcConfigurationManager::getInstance(); $cfg-init( ezcConfigurationIniReader, fr/config ); $settings = $cfg-getSettingsInGroup( standard, SpecificSettings); And then, I've got an issue : SpecificSetting does not exist in the standard configuration. Apparently, it means that once you've got a declared configuration in one directory, it's set for all directories. I've found anything on it in the tutorial and doc section on ezc.org. May you help me ? Regards, Maxime THOMAS Consultant Solution - CMS OpenSource Logica - 17, place des Reflets - 92097 La Défense Cedex Mail : maxime.tho...@logica.com * -Message d'origine- De : components-boun...@lists.ez.no [mailto:components-boun...@lists.ez.no] De la part de Derick Rethans Envoyé : mardi 24 mars 2009 09:48 À : Thomas, Maxime Cc : components@lists.ez.no Objet : Re: [Components] ezcConfiguration and multiple configuration files having the same name On Mon, 23 Mar 2009, Thomas, Maxime wrote: I've got an issue with the ezcConfiguration component, but maybe it's just a documentation problem. My folders are organized like this: / ---config --standard.ini --... ---fr --config -standard.ini -... And when I ask for the configuration standard with the normal code, I just get back the /config/standard.ini settings and not those from /fr/config/standard.ini. And it's the same if I set the location with the init function. Is there something I'm not doing correctly? It's hard to say without code, can you show some? regards, -- Derick Rethans eZ components Product Manager eZ systems | http://ez.no -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components Please help Logica to respect the environment by not printing this email / Merci d'aider Logica à préserver l'environnement en évitant d'imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei die Umwelt zu schuetzen / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components
Re: [Components] ezcConfiguration and multiple configuration files having the same name
On Tue, 24 Mar 2009, Thomas, Maxime wrote: In my index.php : $cfg = ezcConfigurationManager::getInstance(); $cfg-init( ezcConfigurationIniReader, config ); $settings = $cfg-getSettingsInGroup( standard, MainSettings); And then further in the code : $cfg = ezcConfigurationManager::getInstance(); $cfg-init( ezcConfigurationIniReader, fr/config ); $settings = $cfg-getSettingsInGroup( standard, SpecificSettings); And then, I've got an issue : SpecificSetting does not exist in the standard configuration. Apparently, it means that once you've got a declared configuration in one directory, it's set for all directories. This could be broken caching, would you care to file a report so that we can track this? I'll have a look at it then. reagrds, Derick -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components
[Components] ezcConfiguration and multiple configuration files having the same name
Hi, I've got an issue with the ezcConfiguration component, but maybe it's just a documentation problem. My folders are organized like this: / ---config --standard.ini --... ---fr --config -standard.ini -... And when I ask for the configuration standard with the normal code, I just get back the /config/standard.ini settings and not those from /fr/config/standard.ini. And it's the same if I set the location with the init function. Is there something I'm not doing correctly? Regards, Maxime THOMAS Consultant Solution - CMS OpenSource Logica - 17, place des Reflets - 92097 La Défense Cedex Mail : maxime.tho...@logica.com * Please help Logica to respect the environment by not printing this email / Merci d'aider Logica à préserver l'environnement en évitant d'imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei die Umwelt zu schuetzen / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components