For complex links you can use the $this->Html->url() function...
<?PHP
$url=$this->Html->url(array('controller'=>'news','action'=>'view','slug'=>'news_one'));
?>
<a href="<?PHP echo $url; ?>">
<span class="title">Title of news here</span>
<span class="image"><img src="/path/to/image.jpg" alt="Alternative
text" /></span>
</a>
Em sexta-feira, 1 de fevereiro de 2013 07h50min11s UTC-2, Sam escreveu:
>
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.