[Typo3] extending newloginbox

Kraft Bernhard kraftb at gmx.net
Wed Jun 8 11:14:24 CEST 2005


Michael Courcy wrote:
> $TYPO3_CONF_VARS["FE"]["XCLASS"]["typo3conf/ext/newloginbox/pi1/class.tx_newloginbox_pi1.php"] 
> =
>        t3lib_extMgm::extPath('my_extension').'class.my_newloginbox.php';

The line
 > $TYPO3_CONF_VARS["FE"]["XCLASS"]["typo3conf/ext/newloginbox/pi1/class.tx_newloginbox_pi1.php"]

has to be the same as the XCLASS inclusion line of the newloginbox_pi1.php file.

So you will have to write:

$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/newloginbox/pi1/class.tx_newloginbox_pi1.php'] =
t3lib_extMgm::extPath('my_extension').'class.my_newloginbox.php';


forget about the "typo3conf" ... this is just the key of an array ... in newloginbox_pi1.php the XCLASS
inclusion code checks if an XCLASS file is set and if it is so it will get included ... as you defined
a different key ("typo3conf/...") the XCLASS inclusion code in the newloginbox_pi1.php will never include
that file ...
(What you really do when making XCLASSes is that you set a user-defined file which get's included after
the class is defined)


greets,
Bernhard
-- 
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50



More information about the TYPO3-english mailing list