function __() print string, that you type it as first parameter, if
you don't use second parameter, so your example should be like this
(if you use second parameter, true means that function return string,
not print it):

echo $this->Html->link(__('Add', true),array('controller' =>
'categories',
'action' => 'add', 'id' =>$test['Category']['id']), array('escape'
=>true));



On Jun 30, 11:51 pm, saidbakr <[email protected]> wrote:
> Hi,
>
> I use link method of the Html helper in a custom helper that I have
> made.
> I tried to make the link title uses __( ) to maintain translaton but
> it produce the link text title only without full a href html tag.
>
> For example:
> //method of the helper has this line of code
> echo $this->Html->link(__('Add'),array('controller' => 'categories',
> 'action' => 'add', 'id' =>$test['Category']['id']), array('escape'
> =>true));
>
> All what I got, is is a plain text of Add. How could I solve this?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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