Skip to content

Twitter Bootstrap Style Breadcrumb In Codeigniter

Last updated on February 10, 2018

Today I would like to write about Generating Breadcrumb in Codeigniter.After generating it, we gonna apply Twitter Bootstrap Styles to it.

Breadcrumb is most commonly used secondary navigation menus, which will improve user navigation experience and they are also Search Engine friendly(improve SEO).

Example Controller : In this example Controller i am gonna create breadcrumb array and make it available to view file.

data['breadcrumb'] = array('/' => 'Home','#' => 'Welcome Page');
	  $this->load->view('welcome_message',$this->data);
	} 
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */

NOTE: In the breadcrumb, array key is the URL String and Value is the label.

it’s time to create a view file called welcome_message.php (which we are loading in our above example controller)in application/views/ directory.

After creating a file just copy past the blow HTML markup, where we have included Twitter Bootstrap style sheets and javaScript file.




    
    
    

    
	
0){ ?>

That’s it.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments