[TYPO3-piwik] piwikintegration: Trying to get it working ...

Martin Bless m.bless at gmx.de
Mon Jun 18 13:55:53 CEST 2012


Hello Kay,

>otherwise i need to change the code and use some regexes to filter the
>required options from localconf.php :(

I don't think the problem can be solved that way.

I think you are not safe to include the localconf.php from the context
of a software package other than TYPO3. That's one of the reasons why
the

  if (!defined ('TYPO3_MODE')) {
      die ('Access denied.');
  }

is there. At least I haven't heard of an agreement of the TYPO3
developers that the localconf.php is a file that should work in any
context. Do you think we have such a convention?

What about writing the necessary configuration values to a file that's
owned by your extension and have Piwik import that? Your backend
module could create that file. You could even check the date of the
localconf.php and update the extra configuration file when necessary.

greetings ...

Martin

-- 
Certified TYPO3 Integrator | TYPO3 Documentation Team Member

http://mbless.de


More information about the TYPO3-project-piwik mailing list