CodeIgniter Forums
Problem on external file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problem on external file (/showthread.php?tid=58384)



Problem on external file - El Forum - 06-08-2013

[eluser]imrul[/eluser]
suppose i write a controller like this
Code:
class Xyz extends CI_Controller {

public function index()
{
  $this->load->view('xyz_v');
}
}

and view
Code:
<html>
<head>
</head>
<body>


<img src="./images/tu.jpg" />

&lt;/body&gt;
&lt;/html&gt;


My problem is, when i use this type of code and i use url http://localhost/ci/xyz , it's fine. I can see the image.
But when i put this url http://localhost/ci/xyz/index, the image does not show. But the page come to me.
also i use JS file this way. the same problem i face there.
please tell me how can i solve this.


Problem on external file - El Forum - 06-08-2013

[eluser]jairoh_[/eluser]
that's kinda weird problem. are you using the latest version of CI? and if yes or no, please try to re-install CI sir.