Wednesday, August 26, 2009

Re: Overwrite html link method

Because link() method is in HtmlHelper, not in Helper itself. Make
your own helper, load Html helper there, make method link(), load this
helper by default and call it in your views instead of $html->link().

On Aug 26, 3:13 pm, Aurimas Lickus <w...@codecard.lt> wrote:
> Hello,
>
> What i am doing wrong with link overwrite, as it is not working.
> in AppHelper
>
> function __construct() {
>         parent::__construct();
>  }
>
> function link($title, $url = NULL,$htmlAttributes = array(),
> $confirmMessage = false,$escapeTitle = true){
>
>         $title .= "test";
>         return parent::link($title, $url,$htmlAttributes, $confirmMessage,
> $escapeTitle);
>
> }
>
> thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: