[TYPO3-english] Overload ext_autoload value

Christian Kuhn lolli at schwarzbu.ch
Mon Aug 22 11:44:37 CEST 2011


Hey,

On 08/22/2011 10:54 AM, Peter Ruijter wrote:
> I want to overload a file from the SolrPhpClient library inside the the Solr
> extension.
> I thought creating a simple ext_autoload file inside my own extension and
> install this one after the Solr extension installation would solve the
> problem, but my custom file was not loaded.
>
> Does anyone know how to solve this challenge?

Only EXT:/ext_autoload.php files are loaded by core autoloader, no sub 
pathes. And classes must stick to the naming scheme (eg. begin with 
tx_'extensionname'_).

If you are adding external libraries its probably best to register 
another autoloader for this. It is not too complicated, an example can 
be found in enetcacheanalytics (forge) in 
'classes/performance/view/class.tx_enetcacheanalytics_performance_view_resultgraph.php', 
we register the ezComponents autoloader there.

Regards
Christian


More information about the TYPO3-english mailing list