• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue about URLs, can not load image when url: http://localhost/M4U/index.php/

[eluser]Nguyen The Nguyen[/eluser]
in a view file
<title> M4U Music</title>
<img src="imgs/hot4.png">
When URL: http://localhost/M4U/
this file hot4.png is load success
But URL: http://localhost/M4U/index.php/
is file hot4.png not be load

very expect be the help

<img src="&lt;?php echo base_url();?&gt;imgs/hot4.png">

Or you can use the URL Helper img tag.


[eluser]Nguyen The Nguyen[/eluser]
OK, thanks

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.