You can also pass escape=>false in the params array, to shorten it (at
least in 1.2, not sure about 1.1):

echo $html->link( $html->image('cake-rules.png'), '/cake/rules',
array('escape' => false) );

On 26 Jul, 04:19, Grant Cox <[EMAIL PROTECTED]> wrote:
> Yes, set the last parameter of $html->link() to false, so it doesn't
> escape the html of the title (which is your image source).
>
> $thumb_img = $html->image('yourimage.jpg');
> echo $html->link( $thumb_img, '/your/link', array(), false, false );
>
> On Jul 26, 12:44 pm, roliver <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > Is it possible to use $html->link and $html->image together.  As in
> > wrapping html->link around the html->image so that an anchor tag can
> > be added to the image so the user can click it?
>
> > thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to