Support for mailto-links in HtmlHelper::link()

Published on and tagged with cakephp  feature

Up to now it was not possible to create a mailto-link with HtmlHelper::link() (well, there exists a function “linkEmail”, but this function is deprecated). With the latest version from trunk it is possible to create a mailto-link in the following way:

$html->link('My e-mail address', 'mailto:test@test.com');

Bake a comment




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

© daniel hofstetter. Licensed under a Creative Commons License