|
|
|
|
CodeIgnitor
|
Home CodeIgnitor
|
|
|
|
|
CodeIgniter is an open source framework for creating full-featured PHP-based web sites and applications. It is based on the MVC (Model-View-Controller) architecture and is compatible with standard shared hosting accounts, various PHP versions (including PHP4 and PHP5) and configurations. Plus, you don't have to use a command line. URLs are mapped to a particular function within a controller by means of routing. CodeIgniter also supports scaffolding which represents an automated way of generating views based on the models. Although scaffolding is designed for simple prototyping, CodeIgniter takes it a step further by requiring a keyword in the URL in order to access it at all.
|
 |
|
This modern MVC framework renders the creating of PHP applications much easier. A large portion of the work, such as loading libraries, getting data from the model, rendering the view, etc., is done inside the controller. CodeIgniter provides classes for FTP, email, file uploading, XMLRPC, zip encoding. You are not required to give names to you database tables or to name your models after your tables.
|
 |
Models, Views, Controllers - CodeIgniter's MVC architecture |
| |
CodeIgniter is based on the MVC architecture whose main point is that the views have to be separated from the back end of a given application. The back and the front end, on the other hand, are connected using controllers. The separation between the front and the back end of a web application makes the code readable and easier to understand. |
| |
|
 |
Models |
| |
Models have to do with connecting to a database and performing Create, Read, Update and Delete operations. Most often, there is a model for each table in the database. It is named tablename_model.php. Models and controllers contain an uppercase constructor, which often bears the same name as the page itself. The models have their own functions which can be called as soon as you create a specific instance of the given model. |
| |
|
 |
Controllers |
| |
The controllers connect the back end and the front end. In the example above, the Form_model functions performed the INSERT and SELECT statements. The controller will call these functions to output what it needs to display in form of a view. All database-related functions in CodeIgniter are set and called using a model. The front end is displayed and managed by the view. The controller’s structure resembles that of the model and its name as in the lowercase. |
| |
|
 |
Views |
| |
The views display what you in fact see. You can set up a view in many ways. You can have only one view to represent different pages based on the information that the controllers pass to it, or instead have an entirely different view for each web page.
CodeIgniter's strength is its simplicity in its approach. Most of the work is done by the controller, loading in libraries, getting data from the model, and pulling in the view. Everything is in plain sight and you can really see how things work. |
| |
|
 |
System Features |
| |
Speedy page loads are possible with page caching, granular-level module caching, and GZIP page compression.
If your system administrator needs to troubleshoot an issue, debugging mode and error reporting are invaluable.
The FTP Layer allows file operations (like installing Extensions) without having to make all the folders and files writable, making your site administrator's life easier and increasing the security of your site.
Administators quickly and efficiently communicate with users one-on-one through private messaging or all site users via the mass mailing system. |
| |
|
 |
Web Services |
| |
With Web services, you can use Remote Procedure Calls (via HTTP and XML). You can also integrate XML-RPC services with the Blogger and Joomla APIs. |
|
| |
| CodeIgniter is right for you if... |
| • |
You want a framework with a small footprint. |
| • |
You need exceptional performance. |
| • |
You need broad compatibility with standard hosting accounts that run a variety of PHP versions and configurations. |
| • |
You want a framework that requires nearly zero configuration. |
| • |
You want a framework that does not require you to use the command line. |
| • |
You want a framework that does not require you to adhere to restrictive coding rules. |
| • |
You are not interested in large-scale monolithic libraries like PEAR. |
| • |
You do not want to be forced to learn a templating language (although a template parser is optionally available if you desire one). |
| • |
You eschew complexity, favoring simple solutions. |
|
| |
| One of the effective PHP Frameworks is the CodeIgniter. Web applications with advanced features can be readied using the CodeIgniter. Simpler for the beginners, CI follows an MVC (Model View Controller) pattern, thereby enabling in easy learning. Also, due to the usage of conventional PHP coding, the existing codes can be ported using this PHP framework. Also the simplicity with which it works and the speed that it has when compared to the other frameworks, is definitely considerable. |
| |
Striking features of CodeIgniter There are many features that are quite distinguishing, in CI. Few of the most important features are explained below: |
| |
 |
User Guide |
| |
One of the most important features of the CodeIgniter is that it has a very impressive user guide. The way the documentation has been done is simply marvelous and highly useful for coders to know more about the working. |
| |
|
 |
Simplicity |
| |
CodeIgniter is simple and a major portion of the work gets completed in the controllers and uploading the libraries. Since the workings are clear and open, it is very easy to understand what is happening and therefore, simple to use. |
| |
|
 |
Model Handling |
| |
While working with models, CodeIgniter uses a straightforward way of handling. Standard SQL queries can be mimed using few simple commands. Also creation of model objects, loading it and introducing methods to deal with a customized task is also possible. |
| |
|
 |
Data Validation |
| |
Data validation is a major step while working on the models. Here a validation class is used to validate data. First, few rules are defined and assigned to the object to be validated. The data that is sent through the URL is automatically validated by the validation object. Even certain error messages can also be automated the same way, using the data validation class. |
| |
|
|
| There are many other advantages of using CI: |
| • |
Migration from one server to another is easier and hassle-free. Also installation is a lot easier as well. |
| • |
CI is very easy to handle and also to customize. In case a new functionality has to be applied, it can be done without affecting the customization. |
| • |
With MVC based framework, it offers flexibility and easy management. |
| • |
Active Record Implementation is simply superb and easy to remember. |
| • |
Configuration and customization of these configuration files are also easy, thus facilitates hassle free working with various types of developers. |
| • |
It posseses a vast collection of libraries. |
| • |
And as previously said, excellent documentation of the user guide makes it easy for any coder to use the whole framework. |
|
| |
| |
| Latest CodeIgniter Projects |
| |
| Accessories Tools |
| http://www.dealervpt.com |
| |
| Checkout My Trendy |
| http://segnantphp.com/sandbox/checkoutmytrendy |
| |
| BFM Jazz |
| http://bfmjazz.com |
| |
| Jason Verdera |
| http://segnantphp.com/sandbox/jasonverdera |
| |
| Autrey Furniture |
| http://segnantphp.com/sandbox/autreyfurniture |
| |
|
|
| |
|
|
|
|