[TYPO3-mvc] Extbase - external Class - autoloader
Jochen Rau
jochen.rau at typoplanet.de
Mon May 3 12:05:32 CEST 2010
Hi Sascha.
On 02.05.10 13:37, S.Korth wrote:
> i build my first extbase extension. Now i try to include an external
> class. At first i used the normal include, but as i read about the
> autoloader i tried that:
>
>
> // Generates the needed ext_autoload.php file
> $extutil = new Tx_Extbase_Utility_Extension;
> $extutil->createAutoloadRegistryForExtension($_EXTKEY,
> t3lib_extMgm::extPath($_EXTKEY));
You only need the generated file, if you want the core autoloader to
take care of loading you classes. Extbase comes with it's own autoloader
as fallback. So rename the file to "ext_autoload.php~" and try again.
Regards
Jochen
More information about the TYPO3-project-typo3v4mvc
mailing list