[eluser]Unknown[/eluser]
New to CI, just getting to grips. Just getting started and noticed my index view is getting loaded twice.
I changed the route to index. And below is the code using in my controller and view:
/controllers/index.php
Code:
<?php
class Index extends CI_Controller {
public function Index() {
parent::__construct();
$this->load->view('index');
}
}
/views/index.php
Code:
<html>
<head>
<title>Index Page</title>
</head>
<body>
<h1>My Index</h1>
</body>
</html>
When I go to my site, I see the source code is loading twice on the page. Everything from <html>...</html>
Appreciate any help.