[TYPO3-mvc] Extbase - external Class - autoloader
S.Korth
s.korth at dms-arts.com
Mon May 3 10:38:18 CEST 2010
Felix Oertel schrieb:
> Hi,
>
> Am 02.05.10 13:37, schrieb S.Korth:
>> php error -> Fatal error: Class 'myclass' not found in /folder.....
>
> I guess that's a typo, most likely a capitalization issue. on some
> systems capitalization doesn't matter (mac, win) on some it does (bsd),
> that could be why it works local but not remote.
>
> regards, foertel
Hey Felix,
i already test it (i hope).
Its local a mac (mamp) and online a debian linux. Do you know why i have
to use the autoloader? I thought that there is an autoloader within the
typo3 core. An if i use the normal "Classes" folder within my extension,
it will find all classes. Or is this an incorrect information?
Do i have to use a special naming convention?
In my case i uses "Classes/SomeClass/class.tx_myExt_someClass.php"
My ext_autoload.php:
...
...
$extensionClassesPath = t3lib_extMgm::extPath('myext') . 'Classes/';
...
...
'tx_myext_myclass' => $extensionClassesPath .
'SomeClass/class.tx_myext_someClass.php',
...
...
More information about the TYPO3-project-typo3v4mvc
mailing list