CodeIgniter is an open-source PHP web development framework created by EllisLab Inc and it has been adopted by British Columbia Institute of Technology. The framework implements a modified version of the Model-View-Controller design pattern. Use this tag for questions about CodeIgniter classes, methods, functions, syntax and use.
CodeIgniter is an open-source php web application framework created by EllisLab Inc and it is now a project of British Columbia Institute of Technology. The framework implements a modified version of the Model-View-Controller design pattern. It is praised for its performance and the quality of its documentation. It's currently licensed under the MIT License, although previous version were released under the Open Software License ("OSL") v. 3.0.
CodeIgniter is an open source rapid development web application framework, for use in building dynamic web sites with PHP. "Its goal is to enable [developers] to develop projects much faster than writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries." The first public version of CodeIgniter was released on February 28, 2006, and the latest stable version 3.0.6 was released Mar 21, 2016.
CodeIgniter is loosely based on the popular Model-View-Controller development pattern. While view and controller classes are a necessary part of development under CodeIgniter, models are optional.
These are generally regarded as pros of the framework:
- Nearly zero configuration & No restrictive coding rules
- Small footprint
- Easy to learn
- Great documentation
These are generally regarded as cons of the framework:
- No built-in ORM
- No built-in templating
- Doesn't utilize namespaces
- Doesn't utilize PHP's auto-loading feature
- Application code is tightly-coupled with the framework
Current Stable Version: 3.0.6 (Release Date: March 21, 2016)
Top Tips For Codeigniter
One of the most common asked questions in codeigniter on stack over flow is when I view my page I get error 404 page not found. There are a couple of solutions you should look at before asking question.
Solution 1: Check the first letter of class name and filename of controller and models is Uppercase example: Welcome.php
Solution 2: If
base_url()returns unexpected results, it's because you have not set a
Solution 3: If you have not configured your codeigniter application/config/config.php file to remove
$config['index_page'] = '';then you will need to include the index.php in your url
Solution 4: After all settings you need to load the form url etc.. in autoload.php
$autoload['helper'] = array('url', 'file','form','security');
Note you will need a htaccess file when your removing index.php htaccess for codeigniter 2 & 3
Frequently asked questions
- Official documentation
- Codeigniter 3v User Guide
- Codeigniter 2v User Guide
- Sparks package manager
- Official Wiki
- CodeIgniter Wikipedia Article
- Source Code on GitHub
- Codeigniter forums
- Best Library
- CodeIgniter 3 announcement
- Codeigniter htaccess examples Github
- Download latest version 3.0.6
- Setting up HMVC in codeigniter
- DataMapper ORM for Codeigniter 2