On 13 Lip, 11:57, Ski <[EMAIL PROTECTED]> wrote:
> Hi,
>
>   Try using the html helper - it takes a path to your image - relative
> to webroot/img as the first argument and generates an <img> tag.
>
>   Any attributes you want to set in the <img> tag - border, etc.  you
> specify using an array as the 2nd argument.
>
>   <? echo $html->image('ico_comment.png', array('border' => 0)); ?>
>
>   You can make a linked image like this:
>
>   <? echo $html->link($html->image('ico_comment.png' array('border' =>
> 0)), 'http://www.domain.com', null, false, false); ?>
>
>   Have a look at the "Helpers" section in the manual for more info.
>
>   Glen

Thank you. That helped.
I thought that relative url would not change when using diffrent
controllers, but I was wrong.

I got some places when I need to use url as argument to background
tag, ie.:
<td background="....
What should I put there?


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