Welcome Guest, Not a member yet? Register   Sign In
Image folder
#3

[eluser]poji23[/eluser]
For me I'm not sure if it's good practice but what I do is I create the images folder on the same level as the system folder, and in my views, if I wish to insert the image I use:

<images src='&lt;?=base_url();?&gt;images/pic.gif' />

I think you could also load the image with:

Code:
$image_properties = array(
       'src' => '/images/backend/comment.png',
       'style' => 'float:left;margin-right:10px;',
);


echo(img($image_properties));


Messages In This Thread
Image folder - by El Forum - 05-29-2008, 12:01 AM
Image folder - by El Forum - 05-29-2008, 03:08 AM
Image folder - by El Forum - 05-29-2008, 03:24 AM
Image folder - by El Forum - 05-29-2008, 03:38 AM
Image folder - by El Forum - 05-29-2008, 04:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB