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
On Jul 13, 10:26 am, d'plus <[EMAIL PROTECTED]> wrote:
> I'm using ver. 1.1.
> I've got problems with images urls.
> In my default main controller which loads first all images are ok.
> But when I go into diffrent controller all images on the website are
> gone.
> I'm generating image url like this:
> <img src="<?echo IMAGES_URL;?>ico_comment.png" border="0">
>
> What I'm doing wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---