-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using plugin postLoad hook to override configuration #672
Comments
Attachment: This is a draft of the manual for the TYPO3 Extension |
Um... at the point where you propose to add a post-config-load hook, plugins haven't been loaded yet, right? Might a better place be to override the config be in the typo3 plugin's postload? |
hello again, ok, i haven't seen that, i thought on the postload version before.
Reading of properties works fine with that code, but i need a way to write them.
So my new Question is, how to make this class storing changes. As i understand the documentation of Zend_Config and Line 110 in Piwik_Config::init() it should be writeable. Regards -> Thanks for your help Kay |
Can you use a temporary variable?
|
worked for me, with some modifications, erhaps usefull for other integrations.
|
Thanks Kay. |
Shouldn't you have: Zend_Config($superuser, true) ? |
Hello piwik developers,
im proud to announce the TYPO3 extension piwikintegration, which will be released soon in the TYPO3 extension repository.
http://piwik.org/blog/2008/06/new-plugin-typo3-integration/
Its partly based on the extension discussed in the upper blog article.
Its completely integrated in TYPO3 (Backendmodule, Userauthentification, etc.).
'''But I do need a change in the main source code of Piwik.
I need an additional hook in:
https://github.com/piwik/piwik/blob/master/core/FrontController.php?rev=head#L240
which is called directly after successful creation of the configuration object.
215 try {
216 Piwik::createConfigObject();
217 } catch(Exception $e) {
218 Piwik_PostEvent('FrontController.NoConfigurationFile', $e);
219 $exceptionToThrow = $e;
220 }
Piwik_PostEvent('FrontController.ConfigurationLoaded'); //or similar
'''I would like to use this hook to dynamically override the database settings with the valid ones stored in the TYPO3 settings.
This would ensure, that the database settings are always up to date.
Thanks for your great work on PIWIK.
Regards Kay
The text was updated successfully, but these errors were encountered: