How to properly insert a Bootstrap navbar in the Codeigniter view?

1

I'm learning Codeigniter and would like to know what or correct ways to insert a navbar in my view taking into account that it will be inserted by all the views in the system.

My question is what directory to write the navbar and how to call it in view ?

    
asked by anonymous 22.06.2016 / 16:53

1 answer

2

You can create a file called " navbar.php ", for example, and save it in " application / views / commons " (the be created manually, since it does not exist.)

When you want to call this navbar in a view, just use:

$this->load->view("commons/navbar");

In the position you want within the view file.

    
22.06.2016 / 17:06