Wednesday, June 30, 2010

i18n and link

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 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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate