This tutorial will make you understand how you can add or integrate Bootstrap Framework to your CodeIgniter project. Follow the below steps -
Step 1 : Download Bootstrap Framework from http://getbootstrap.com/ and download CodeIgniter from https://www.codeigniter.com/.
Step 2 : After that make a asset folder (or any other name) to CodeIgniter folder.
Step 3 : Then copy the Bootstrap content (3 folders [css, fonts, js]) to asset folder.
Step 4 : After that go to your view folder (application --> views).
Step 5 : Then link the bootstrap css to view page. Below code will integrate the css and put the code between the <head></head> tag.
<link href="<?php echo base_url(); ?>assets/css/bootstrap.min.css" rel="stylesheet">
Step 6 : Save and reload the page and you will see that bootstrap successfully added to your Codeigniter project.
IDE Used To Test This Code : Eclipse for PHP.
Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.
Step 1 : Download Bootstrap Framework from http://getbootstrap.com/ and download CodeIgniter from https://www.codeigniter.com/.
Step 2 : After that make a asset folder (or any other name) to CodeIgniter folder.
Step 3 : Then copy the Bootstrap content (3 folders [css, fonts, js]) to asset folder.
Step 4 : After that go to your view folder (application --> views).
Step 5 : Then link the bootstrap css to view page. Below code will integrate the css and put the code between the <head></head> tag.
<link href="<?php echo base_url(); ?>assets/css/bootstrap.min.css" rel="stylesheet">
Step 6 : Save and reload the page and you will see that bootstrap successfully added to your Codeigniter project.
IDE Used To Test This Code : Eclipse for PHP.
Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.
1 comments:
thank you sir..
ReplyPost a Comment