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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to