[TYPO3-dev] require needed classes in config_default.php

Martin Kutschker masi-no at spam-typo3.org
Wed Nov 11 15:03:08 CET 2009


Felix Oertel schrieb:
> Hi everyone,
> 
> I just used t3lib/config_default.php for my standalone script and I
> noticed I have to require t3lib_div and t3lib_extmgm before.
> 
> I would like to add something like the following to config_default, so
> it could load the two needed classes itself.
> 
> if (defined('PATH_t3lib')) {
>     // require_once t3lib_div and t3lib_extmgm
> }
> 
> So you just have to define PATH_t3lib (like PATH_typo3conf) in your
> script and config_default cares for the rest.
> 
> Any concearns?

I don't see it to be a hassle to incl. those files manually if you try to load config_default.php by
yourself.

Masi




More information about the TYPO3-dev mailing list