Worked! Thanks a lot.
Quite obvious when I think about it ;)
On 12 Feb., 11:35, grigri wrote:
> Assuming you meant `app/webroot/img`,
>
> // This is a text link to an image:
> echo $html->link('This is an image', '/img/some-image.png');
>
> // This is an image link to another image:
> echo $htm
Assuming you meant `app/webroot/img`,
// This is a text link to an image:
echo $html->link('This is an image', '/img/some-image.png');
// This is an image link to another image:
echo $html->image('small-image.png', array('url' => '/img/big-
image.png'));
// So is this:
echo $html->link(
$html
If by app/img you mean app/webroot/img, then the standard $html->link
() should be sufficient, right?
http://api.cakephp.org/class/html-helper#method-HtmlHelperlink
On Feb 12, 10:08 am, Adrian Marte wrote:
> Hi,
>
> How can I create a link to an image (in the app/img directory) using
> the HTML
Hi,
How can I create a link to an image (in the app/img directory) using
the HTML helper? I only find solutions for image links, but not links
to images.
Thank,
Adrian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups