[TYPO3-mvc] Howto create ext_autoload.php files?

Xavier Perseguers typo3 at perseguers.ch
Fri Jul 31 12:25:40 CEST 2009


Xavier Perseguers wrote:
> Hi,
> 
> Could someone describe how 
> Tx_Extbase_Utility_Extension::createAutoloadRegistryForExtension is 
> intended to be used?

I did that in one of my frontend plugins (e.g.: before the class signature):

$utility = t3lib_div::makeInstance('Tx_Extbase_Utility_Extension');
$utility->createAutoloadRegistryForExtension('my_ext', 
t3lib_extMgm::extPath('my_ext'));

It creates the ext_autoload.php file as expected and I must then clear 
temp_* files in order for it work. So far so good but:

- I have then to deactivate this snippet once the ext_autoload.php file 
has been created
- I really would prefer a call from command-line "$ php 
Extbase_Utility... createAutoload... ") when what I did was somehow 
"official"
- Now I have another funny error:

Fatal error: Class 'Tx_Fluid_View_TemplateView' not found

Is there anything missing there? :-)

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away


More information about the TYPO3-project-typo3v4mvc mailing list