[TYPO3-dev] Searching for hook
Dmitry Dulepov
dmitry.dulepov at gmail.com
Tue Jun 15 11:48:53 CEST 2010
Hi!
Sascha Hierold wrote:
> Directory-structure
> ===================
> Ext-Folder: typo3conf/ext/***_ad_sync
>
> Files:
> ------
> /ext_localconf.php
> /class.tx_***_ad_sync_hooks.php
Missing ext_emconf.php. Use extension kickstarter to generate a proper file
structure.
> $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';
Not a problem but FYI: do not use [], use [$_EXTKEY]. In certain rare cases
ext_localconf can be loaded twice, which means you will have two copies of
your hook running.
> function syncAD($params, $parent='') {
> echo $params;
Use debug() instead and enable debug in the Install tool.
> t3lib_div::devLog('Hooks: '.t3lib_div::arrayToLogString($params,
> array(), 100), 'tx_***_ad_sync_hooks');
This works only if you have any of devLog extensions.
> Devlog logs a error with the message: [Unable to autoload class
> "tx_***_ad_sync_hooks.php"]
This means you changed ext_localconf.php but did not clear configuration
cache where the old version of this file is cached ;)
--
Dmitry Dulepov
TYPO3 expert / TYPO3 core&security teams member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/
More information about the TYPO3-dev
mailing list