[TYPO3-english] Creating a link from within a hook function
Dmitry Dulepov
dmitry at typo3.org
Wed Sep 22 13:29:58 CEST 2010
Hi!
Graham Solomon wrote:
> I have created a hook function which I am using to send an email to
> frontend users, in the body of the email I would like to create a link
> to some content, however I am not sure of the correct way to tap in to
> the pibase functions to do so is.
No need for pibase.
> If anyone has a snippet for doing this they could share I would really
> appreciate it :)
http://dmitry-dulepov.com/article/linking-properly-in-your-typo3-code.html
A small addition: you can create a cObj like this:
$cObj = t3lib_div::makeInstance('tslib_cObj').
If you want to know more:
http://packtpub.com/typo3-extension-development/
--
Dmitry Dulepov
TYPO3 core&security team member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/
More information about the TYPO3-english
mailing list