[TYPO3-mvc] ext_autoload.php requirements?

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Oct 19 19:02:05 CEST 2010


Hi,

> are there some special features PHP needs compiled in or loaded as
> module in order to use
> Tx_Extbase_Utility_Extension->createAutoloadRegistryForExtension()?
> I tried to create an ext_autoload.php via
>
> $extutil = new Tx_Extbase_Utility_Extension;
> $extutil->createAutoloadRegistryForExtension('myext',
> t3lib_extMgm::extPath('myext'));
>
> but my ext_autoload.php just looks like that after creation:
>
> // DO NOT CHANGE THIS FILE! It is automatically generated by
> Tx_Extbase_Utility_Extension::createAutoloadRegistryForExtension.
> // This file was generated on 2010-10-13 12:27
>
> $extensionClassesPath = t3lib_extMgm::extPath('myext') . 'Classes/';
> return array(
> );
>
> The myext extension itself was created with extbase_kickstarter (latest
> trunk), so i guess i match the possible naming conventions.
> i also tried to recreate the ext_autoload.php for an extension
> (extbase_webservices) by uncommenting hte extutil lines in
> ext_localconf.php for testing (while this file already has an working
> array) - same result, empty array on my machine.

AFAIK you don't need it. Extbase is registering it's own autoloader in 
parallel to TYPO3s and thus extbase based extensions (due to their 
strict naming conventions) don't need ext_autoload.php.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list