You should try making the 5th parameter false  so that it doesn't
escape the title (or the link text) in your case the image tag

Sam D

ps the api is your guide  http://api.cakephp.org/  ;)

and welcome from the grumpy old man who leave short useless answers
scattered all over the place

link ($title, $url=null, $htmlAttributes=null, $confirmMessage=false,
$escapeTitle=true, $return=false)

On 8/1/06, kestrelid <[EMAIL PROTECTED]> wrote:
>
> New to cakePHP so forgive me a potentially stupid question.
>
> Creating an image link should be simple, right! I have gone through the
> manual I don't know how many times. Looked through code snippets, etc.
> yet I still get bogus output rather than my chosen picture as a link!
>
> An image link as I understand it should be something like this
> <?php echo $html->link( $html->image("edit.png",
> array('alt'=>'edit')),"/users/edit/{$user['User']['id']}"); ?>
>
> For output, I am getting a working link but it is this actual text that
> you have to click to activate the link!
> <img src="/cakePHP/img/edit.png" alt="edit" />
>
> rather than the image at
> www.kestrelid.com/cakePHP/app/webroot/img/edit.png
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to