[TYPO3-dev] Problems with ext_autoload.php and ext_localconf.php

François Suter fsu-lists at cobweb.ch
Tue May 22 13:31:54 CEST 2012


Hi Michael,

> Reading this article in TYPO3 wiki http://wiki.typo3.org/Autoload one
> could guess that the mechanism is only working, if I use
> t3lib_div::makeInstance() - which I'm actually not doing here, as this
> is a static call.

Indeed.

> Any ideas on how to fix this?!?

In such a case you can't rely on the autoloader unfortunately. You'll 
have to use the usual require statement. Anyway if your class is used in 
ext_localconf.php it means that it's loaded all the time, so explicitly 
require'ing it doesn't make a difference.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch



More information about the TYPO3-dev mailing list