[TYPO3-mvc] Extbase - external Class - autoloader

S.Korth s.korth at dms-arts.com
Mon May 3 12:50:56 CEST 2010


Jochen Rau schrieb:
> 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


Hey Jochen,

this also apply to an "external" class, like "/Classes/MyClass/Class.php" ?

Still have my error... :-(


Sascha


More information about the TYPO3-project-typo3v4mvc mailing list