[TYPO3-dev] Searching for hook
Sascha Hierold
Sascha.Hierold at atp-autoteile.de
Tue Jun 15 10:30:42 CEST 2010
Hi,
> Missing path to the file. Must be:
>
> .. = 'EXT:tx_whatever/path/to/class.tx_whatever.php:tx_whatever_hooh->syncAD'.
>
> Note that you MUST use 'class.tx_...', not just 'tx_...' as a file name.
> This is according to TYPO3 coding guidelines.
Ok, I changed this too, but it is not working. Here my settings again
and all my files I used for this point.
Directory-structure
===================
Ext-Folder: typo3conf/ext/***_ad_sync
Files:
------
/ext_localconf.php
/class.tx_***_ad_sync_hooks.php
ext_localconf.php
=================
<?php
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][]
= 'EXT:***_ad_sync/class.tx_***_ad_sync_hooks.php:tx_***_ad_sync_hooks';
require_once(t3lib_extMgm::extPath('***_ad_sync').'/class.tx_***_ad_sync_hooks.php');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postUserLookUp'][]
=
'EXT:***_ad_sync/class.tx_***_ad_sync_hooks.php:tx_***_ad_sync_hooks->syncAD';
?>
class.tx_***_ad_sync_hooks.php
==============================
<?php
class tx_***_ad_sync_hooks {
function processDatamap_postProcessFieldArray(...) {
...
}
function syncAD($params, $parent='') {
echo $params;
t3lib_div::devLog('Hooks:
'.t3lib_div::arrayToLogString($params, array(), 100),
'tx_***_ad_sync_hooks');
die;
}
}
?>
Devlog logs a error with the message: [Unable to autoload class
"tx_***_ad_sync_hooks.php"]
Whats wrong here? The first Hook works correct, the second hook doesnt.
Thanks for help...
Bye Sascha
More information about the TYPO3-dev
mailing list