I have 4 pages in view such as
layout/header.php,
layout/header_assets.php,
user/main.php,
layout/footer.php
i want to load these multiple view so i have used this code in controller
$this->load->view('layout/header_assets');
$this->load->view('user/main',$data);
$this->load->view('layout/footer');
but i have got an issue :
<link rel="apple-touch-icon" href="http://localhost/game/assets/images/apple-touch-icon.png">
<html lang="en">
<head>
</head>
<body>
test
</body>
</html>
<footer>
</footer>
I want html code in proper way, header_assets load in head tag, footer load in body tag.
but right now if i load first header_assets and than load main.php. so header_assets load first after that main.php
I want it in this way
<html lang="en">
<head>
<link rel="apple-touch-icon" href="http://localhost/game/assets/images/apple-touch-icon.png">
</head>
<body>
test
<footer>
</footer>
</body>
</html>