Solution:
$html->link($html->image(...), $html->webroot(IMAGES_URL, 'image.jpg),
null null, false);
On Aug 27, 1:25 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Clarification: if the target is another image how would you get just
> the image url?
>
> $html->link($html->image(...), $html->image(...,
> array('escape'=>true)), null null, false);
>
> That will not work because there's no way to escape the img tag in the
> target.
>
> On Aug 27, 1:20 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > I don't think it is because there is no way to get only the image url
> > without the img tag.
>
> > On Jul 25, 9: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
-~----------~----~----~----~------~----~------~--~---