Sunday, July 25, 2010

Re: Link with image and text

Things will be different if you're using Cake 1.3, but it will be
along the lines of:

$this->Html->link($this->Html->image('folio/thumb/' . $feature['Entry']
[0]['image'], array('alt' => __($feature['Portfolio']['title'], true),
'border' => 0)) . '<h3>' . $feature['Portfolio']['title'] . '</h3>',
URL_HERE, array('escape' => false));

You can see an example here http://book.cakephp.org/view/1442/link

On Jul 25, 9:32 pm, "Dave Maharaj" <m...@davemaharaj.com> wrote:
> I am trying to place an link which is an html image then text after the
> image.
>
> But all I get is the actual image source in the screen, not the image.
>
> <?php echo $html->link(
>
> $html->image('folio/thumb/'.$feature['Entry']['0']['image'] , array(
>
> 'alt'=> __($feature['Portfolio']['title'], true), 'border'=>"0")),
>
> '<h3>'.$feature['Portfolio']['title'] .'</h3>');?>
>
> Thanks
>
> Dave

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