Friday, February 1, 2013

Re: Add colour and bold hyperlinks in html->link()

Add a third option to the Html link:

echo $this->Html->link(<b>Text of link</b>', '/website', array('escape' => false));

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 1 Feb 2013, at 09:50:11, Sam <lightaiyee@gmail.com> wrote:

Hi CakePHP experts,

I would like to add color and bold to the hyperlink set in html-link(). This is how my code looks

$this->Html->('Text of link','/website');

I tried to bold the text $this->Html->('<b>Text of link</b>','/website') but it does not work. May I know if adding color and bold can be done?

Thank you. I am using Cakephp ver2.2

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: