Welcome Guest, Not a member yet? Register   Sign In
Problem on external file
#1

[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.
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB