Support for JavaScript and mailto links in HtmlHelper::link()

Published on and tagged with cakephp  tip

At the moment, the function link() of the HtmlHelper does not allow to create links like <a href=”javascript:doSomething();”> or <a href=”mailto:xy@xy.com”>. I have written a patch to add this functionality.

Bake a comment




(for code please use <code>...</code> [no escaping necessary])

© daniel hofstetter. Licensed under a Creative Commons License