Re: Link to Image using Helpers

2009-02-18 Thread Adrian Marte
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

Re: Link to Image using Helpers

2009-02-12 Thread grigri
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

Re: Link to Image using Helpers

2009-02-12 Thread dr. Hannibal Lecter
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

Link to Image using Helpers

2009-02-12 Thread Adrian Marte
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