Introduction
CodeIgniter is developed by
EllisLab, Inc.It is completely written in
PHP.
Hence it is a powerful PHP framework also called(
FULLY BAKED PHP FRAMEWORK) , built for PHP developers with a very small footprint and to the developers who need a simple , elegant , well-structured toolkit to create full-featured PHP web applications. CodeIgniter might be a good fit for the developers who were tired of hosting accounts and undocumented frameworks.
MVC - MODEL , VIEW , CONTROLLER1.This CodeIgniter is based on MVC development pattern.
2.Almost zero configuration framework.
3.Well documented framework.
Model : It represents the data structures , typically model classes will
contain functions which were to retrieve , insert and update information in database.
View : This is the GUI part , where the information here will be presented to a user. A view is normally called a web page , but here in this CI a view can also be a page fragment like header, footer and any other page.
Controller : The controller serves as an intermediatary betweenn the model , view and another other resources needed to process the HTTP Request and generate a web page.
Working with MVC requires a clear knowledge of OOPs concepts.The basic features of OOPs are:
Object-Oriented Programming: It is a methodology or paradigm which is used to develop/design a program using classes and objects.Which simplifies the huge or real world projects.
1.Object
2.Class
3.Inheritance
4.Polymorphism
5.Abstraction
6.Encapsulation.
Object : Any real world entity which has state & behaviour is called object and it may be anything either physical object or logical object.
Class : Collection of objects is called class.It is a logical entity.
Inheritence : When an object acquires the features of another object then it is called inheritence it provides code resuablility and by which it achieves run-time polymorphism.
Polymorphism: When one thing is used in different ways then it is called polymorphism , like '+' operator performs addition operation and also concation operation in case of strings.
Abstraction : This is nothing but called hiding the code complexity , means it hides the code,internal details and shows only the functionality.
Ex: Car - we can see the shape and outer part of car but not the working of the engiene. It is called abstraction.
Encapsulation : Combining/Binding code + data = single unit is called encapsulation.
ex: Java class is an example of encapsulation.
Working with CodeIgniter will be continued in next Post.