[TYPO3-mvc] itemArrayProcFunc with Extbase

Stephan Helten stephan.helten at engage.de
Mon Aug 8 07:39:19 CEST 2011


Hi,

I think you need to create an ext_autoload.php in your extension, to let
typo3 find your classpath.
This file does the mapping of the classname to the classpath. 
Additionally, you should reference to your classes using lower-case.

You can create the ext_autoload.php (in the root of your extenson path) by
your own, e.g.:

$extensionClassesPath = t3lib_extMgm::extPath('eng_persons') . 'Classes/';
return array(
  'tx_engpersons_label_personlabel' => $extensionClassesPath .
'Label/PersonLabel.php',
  'tx_engpersons_label_serviceresponsibilitylabel' => $extensionClassesPath
. 'Label/ServiceResponsibilityLabel.php',
);


Or you let it be created by typo3 with this call in e.g. your extensions
ext_localconf.php:

Tx_Extbase_Utility_Extension::createAutoloadRegistryForExtension($_EXTKEY,
t3lib_extMgm::extPath($_EXTKEY));

Remember to delete this line after some page calls.

regards

Stephan


-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Lars Peipmann [Infield Design]
Gesendet: Freitag, 5. August 2011 23:44
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] itemArrayProcFunc with Extbase

Hi there,

I try to use itemArrayProcFunc in TMENU with Extbase. Unfortunately I 
get this Message:

Fatal error: Class 
'Tx_IdCoastandards_Domain_Repository_ProgramRepository' not found in 
/home/coadev/public_html/typo3_src-4.5.4/t3lib/class.t3lib_div.php on 
line 5308

I did all like in this post:
http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2009-June/000487.h
tml

can you help me with that?

Thanks,
Lars
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list