[TYPO3-dev] TCEmain Hook.

Stephane Baribeau stephane.baribeau at sys-tech.net
Tue Apr 7 19:29:47 CEST 2009


Hello everyone!

I begin in ext developping with hook, and i have a mistake that doesnt work.
(sorry for my bad english i do my best!)

i have this ext_localconf.php
<?php
if (!defined ('TYPO3_MODE'))     die ('Access denied.');

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib.tcemain.php']['processDatamapClass'][] 
= 
'EXT:hook_testextension/class.tx_hooktestextension_tcemain.php:tx_hooktestextension_tcemain';

?>

and i make a class.tx_hooktestextension_tcemain.php like that :

<?php

class tx_hooktestextension_tcemain {
  function processDatamap_afterDatabaseOperations($status, $table, $id, 
&$fieldArray, &$reference) {
    //debugster($table);
    die('dfadfsaf');
  }
}

?>

and when im in the BackEnd, i make a new page, write information on it, 
create Content Element, etc. save and my hook doesnt work make a DIE 
when the database make operations.

Whats wrong with my code?

does i need to include my ext somewhere? or i only need to put him in 
the ext dir?

thanks.

have a nice day!

-- 
*Stéphane Baribeau*
Programmeur

stephane.baribeau at sys-tech.net <mailto:stephane.baribeau at sys-tech.net>
418 520-0739 poste 129
514 907-0036 / 1-877-969-8324

*SYS-TECH / Web, médias et technologies libres*
6700 BOUL PIERRE-BERTRAND BUREAU 209
QUÉBEC QC G2J 0B4
http://www.sys-tech.net

/Membre supporteur de l'Association TYPO3 <http://typo3.org>/




More information about the TYPO3-dev mailing list