INTEGRATE BOOTSTRAP WITH PHP CODEIGNITER FRAMEWORK
This tutorial is about the technique of combining the power of two robust frameworks, PHP CodeIgniter MVC framework and Twitter Bootstrap.You need to properly integrate twitter bootstrap with CodeIgniter framework for it to work properly.
So this tutorial will show you how to integrate Bootstrap with CodeIgniter to enhance the appearance of your CodeIgniter application.
Download the latest versions of the frameworks from the links given below.
Steps for integration of CodeIgniter framework with bootstrap
STEP-1:
Download and extract the PHP CodeIgniter Framework zip file from the above link to your Local Server.Rename it with your application name. Inside create a folder named "assets" to keep all your bootstrap files. CodeIgnitor folder structure must be similar to the below image.
STEP-2:
Extract all the files of bootstrap and move the css, js and fonts folder of Bootstrap to the "assets" folder that we have created in STEP-1.
STEP-3:
Bootstrap's JavaScript plugins need JQuery library file to work properly.So, move the downloaded JQuery file to 'assests/js' folder of CodeIgniter.
Finally, we have all got all the files required to run CodeIgnitor with bootstrap in place. we must need to include the bootstrap ".css" and ".js" files to CodeIgnitor views file view files that lies inside the views folder.
Copy the below line and add just above the </head> tag in the CodeIgnitor view file to include the bootstrap CSS file.
<link rel="stylesheet" href= "<?php echo base_url(" assets/css/bootstrap.css"); ?>" />
To add JavaScript files in CodeIgniter,we should add the below code in CodeIgniter views file just before the </body> tag.
<script type="text/javascript" src="<?php echo base_url("assets/js/jquery.min.js"); ?>"></script>
<script type="text/javascript" src="<?php echo base_url("assets/js/bootstrap.js"); ?>"></script>
We keep on updating such tutorials.
For more such tutorials like our Facebook page.
Your blog provided us with valuable information to work with. Thanks a lot for sharing. Keep blogging. Web Development Company in Bangalore | Website Designing Companies in Bangalore | Web Design Services in Bangalore | Web Designing Companies in Bangalore
ReplyDeleteThis is a great blog.
ReplyDeleteBeing a PHP developer I prefer to use Codeigniter framework for web development.
We have experts here at Darkbears who can help you in integration. But still if anyone of you facing any problem then contact darkbears and hire codeigniter developer.
programmingtutorialsscript.blogspot.com
ReplyDelete