[TYPO3-dev] xclass for t3lib_tcemain does not work
Sonja Scholz
ss at cabag.ch
Fri Feb 12 10:57:56 CET 2010
Hi,
thank you for your answer.
I have created a xclass ux_SC_mod_user_ws_index, which works well. And
in this xclass I instanciate TCEmain like this:
$tce = t3lib_div::makeInstance('t3lib_TCEmain');
$tce->stripslashes_values = 0;
$tce->start(array(), $cmdArray);
$tce->process_cmdmap();
My xclass for t3lib_TCEmain is registered in ext_localconf.php and is
shown correctly in the configuration module where I can see all xclasses:
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tcemain.php']
=
t3lib_extMgm::extPath($_EXTKEY).'typo3_versions/'.TYPO3_version.'/class.ux_t3lib_tcemain.php';
I have just tried to do die() outside of my ux_t3lib_TCEmain class
definition in the xclass file, but nothing changed - so the file isn't
included...
Does anyone have an idea why?
Kind regards,
Sonja
Popy schrieb:
> Two explanations :
>
> 1. There's a "global scope not global" bug during the inclusion of
> tcemain
> 2. Your XCLASS declaration is wrong. How did you declare it and where ?
>
>
> Cordialement,
> Pierre Dudoret
>
>
> 2010/2/11 Sonja Scholz <ss at cabag.ch>
>
>> Hi everyone
>>
>> I created a xclass for t3lib_tcemain, which is shown in the configuration
>> module in the XCLASS part well.
>>
>> My problem now, is that this xclass isn't loaded and so does not work.
>> Unfortunately I really need a xclass and cannot work with a hook.
>>
>> As t3lib_tcemain class has a xclass inclusion code in the footer, I thought
>> it would work.
>>
>> I checked the function t3lib_div:makeInstanceClassName which instanciates
>> the t3lib_tcemain, and I print_r a get_declared_classes() list. But in this
>> list my xclass class isn't shown, but other xclass classes are shown.
>>
>> Does anyone have an idea why it's maybe not possible to xclass
>> t3lib_tcemain?
>>
>> Thank you for any feedback.
>>
>> Kind regards,
>>
>> Sonja
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>>
More information about the TYPO3-dev
mailing list