[TYPO3-german] Signal / Slots Problem
Eike Starkmann
starkmann at undkonsorten.com
Mon Oct 1 15:50:58 CEST 2012
Hi,
hallo ich habe ein Problem. Ich möchte gerne powermail erweitern. Die
neue Version arbeitet nicht mehr mit Hooks sondern mit Signal/Slots.
Ich hab jetzt eine Extension geschrieben, aber auf dem powermail
Formular passiert nichts.
Klasse:
class tx_powermail_pdf extends Tx_Extbase_MVC_Controller_ActionController {
function main(){
$this->signalSlotDispatcher =
t3lib_div::makeInstance('Tx_Extbase_Object_Manager')->get('Tx_Extbase_SignalSlot_Dispatcher');
$this->signalSlotDispatcher->connect('Tx_Powermail_Controller_FormsController',
'BeforeRenderView',
function () {
echo "Test";
});
}
}
Das Singal 'BeforeRenderView' gibt es.
Dies ist eingebunden über ext_tables:
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript',
'Powermail PDF Form');
Tx_Extbase_Utility_Extension::registerPlugin(
$_EXTKEY,
'Pi1',
'Powermail PDF'
);
Was mache ich falsch? Ich habe auch das Gefühl das die main() gar nicht
ausgeführt wird.
Danke im voraus, Eike
More information about the TYPO3-german
mailing list