Try :
<?php echo $this->Html->link(__("<b>"."$title1"."</b>"),
array('action' => 'viewNews',$results[0]['news']['id']));?>

On Aug 16, 9:41 am, Jiří Vávrů <[email protected]> wrote:
> Hello,
> I need to insert dynamicaly text into link.
> I tried this solution, but is not working.
>
> What I do wrong?
>
> <?php $title1 = $results[0]['news']['subject'];?>
>     <td colspan="2" class="subject"><?php echo 
> $this->Html->link("<b>"."$title1"."</b>"), array('action' => 
> 'viewNews',$results[0]
>
> ['news']['id']));?></td>
>
> Thanks for any advice

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to