am working with boostrap and codeigniter and... how make a footer and header static and only change the content?
HEADER
<div id="content">
</div>
FOOTER
here this http://i.imgur.com/bXs5IRQ.png
am working with boostrap and codeigniter and... how make a footer and header static and only change the content?
HEADER
<div id="content">
</div>
FOOTER
here this http://i.imgur.com/bXs5IRQ.png
Create header.php
and place in /application/views
<!DOCTYPE html>
<html lang="en">
<head>
......
do you header stuffs here
Create footer.php
and place in /application/views
<div class="footer">
....
footer stuff here
</div>
</body>
<html>
Now in your every view file you can include header
and footer
files
<?php $this->load->view('header'); ?>
<div id="content">
... rest of the dynamic stuffs
</div>
<?php $this->load->view('footer'); ?>
The ci has it's own template, you can use that or write your own output method in the base controller. And I think the bootstrap is a library of CSS and JS. So if you want to use style, you can include bootstrap, but if you want to format the output you should read the ci_user_guide.