[TYPO3-mvc] Extbase - external Class - autoloader
S.Korth
s.korth at dms-arts.com
Mon May 3 21:48:54 CEST 2010
Felix Oertel schrieb:
> Hey,
>
> Am 03.05.10 12:55, schrieb S.Korth:
>> Felix Oertel schrieb:
>>> Am 03.05.10 10:38, schrieb S.Korth:
>>>> In my case i uses
>>>> "Classes/SomeClass/class.tx_my>>>>E<<<<xt_someClass.php"
>>>> [...]
>>>> 'tx_myext_myclass' => $extensionClassesPath .
>>>> 'SomeClass/class.tx_my>>>>e<<<<xt_someClass.php',
>>>
>>> as mentioned before, use the same capitalization on both instances!
>> i think i checked everything. Still same error. Maybe i miss something.
>
> ok, I tried to make it look a bit clearer to you *g* watch out for the "><"
>
> regards, foertel
Hey Felix,
i know what you meant! I juste wrote the lines as example. It was a
mistake in writing, sorry ! In my autoload everything is/was fine. I did
it like Jochen says. I delete the autoload file.
BUT -> that doesn't fix my problem.
---
Only this works for me:
$obj = t3lib_div::makeInstance('Tx_Myext_Domain_Model_MyClass');
---
This doesn't:
$obj = new Tx_Myext_Domain_Model_MyClass
---
My "Tx_Myext_Domain_Model_MyClass" Class is inherit from an external
Class, and not from a "Tx_Extbase_DomainObject_AbstractEntity".
Can that be the Problem ? Now it works !?!? Any idea why ?
By the way, any idea how to set static attributes, when using makeInstance ?
Thanks so far,
Sascha
More information about the TYPO3-project-typo3v4mvc
mailing list