[TYPO3] Extension "comments" notification without the need to approve each comment?

Dmitry Dulepov dmitry.dulepov at gmail.com
Tue Sep 30 20:54:17 CEST 2008


Hi!

Thomas Hirt wrote:
> I am at the moment trying to write my first extension.
> Obviously I have some Problem:
> 
> Why this line isn't working:
> $toEmail = $this->conf['spamProtect.']['notificationEmail'];
> I know that this array comes out of the extension comments.
> I use a hook inside of this extension.
> 
> Where can I get the content of the array 
> conf['spamProtect.']['notificationEmail']?

The manual says that you have a reference to the calling object inside the hook as $pObj. So use $pObj->conf['spamProtect.']['notificationEmail'].

-- 
Dmitry Dulepov
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/duplicate_content_with_realurl/


More information about the TYPO3-english mailing list