Welcome Guest, Not a member yet? Register   Sign In
Codeigniter and Bootstrap installation using composer
#3

What I do, is that I use a "main" template, which includes the css, js, head, body, etc... Then, inside my body tag, I do the $this->load->view('folder/function', $data); which processes the internal view... Do I make sense ???

Main View:

<html>
<head>
<?php $this->load->view('html/head', $view_data); ?>
</head>
<body lang="es">

<div class="container">

<?php $this->load->view('html/header')?>

<div class="contenido">

<?php if (isset($which_view)) $this->load->view($which_view, $view_data)?>

</div>
<?php $this->load->view('html/footer');?>
</div>
</body>
</html>
Reply


Messages In This Thread
RE: Codeigniter and Bootstrap installation using composer - by Langriala - 10-18-2022, 04:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB