Welcome Guest, Not a member yet? Register   Sign In
How to give a src path to image in codeigniter 2.0
#1

[eluser]manishchndk[/eluser]
In config.php file i set $config[base_url]='localhost/project_name/';


when i m trying to retrive the image from project_name/application/plugins/file_name
it is not displaying any image to me. Below is the code i have written for image.

<img src="&lt;?php echo base_url();?&gt;application/plugins/dell_logo.jpg" />

it is not showing any image nor giving any error and base_url='localhost/project_name/'

if anybody the solution help me please.
#2

[eluser]steelaz[/eluser]
Start Firefox+Firebug or open Developer Tools in Chrome, select Net (Network) tab and refresh the page. You should see request and response headers for that image.




Theme © iAndrew 2016 - Forum software by © MyBB