Tuesday, 7 March 2017

Working with CodeIgniter

By,
Rahul

CodeIgniter is a free MVC (Model, View & controller) based application development framework or a toolkit based on PHP. It minimizes the development efforts and time of the programmer. Instead of writing code from scratch it provides rich set of libraries for common tasks and also provides simple interface and structure to access these libraries. In simple words CodeIgniter helps programmer to create project with a minimum amount of code and also reduces the time and efforts.


CodeIgniter is very light weight.     The core system of CodeIgniter requires a few very small libraries. Additional libraries are dynamically added according to programmer requirements, so the base system is very light weight and quite fast.

CodeIgniter uses MVC (Model-View-Controller) approach, which allows separation between presentation and logic of the project.
The URL’s generated by CodeIgniter are very clean and search engine friendly. Instead of using standard Query string approach to URLs that is synonymous with dynamic systems, CodeIgniter uses segment based approach.

CodeIgniter comes with a rich set of libraries that helps developer in commonly needed web development tasks, like sending Email, accessing Database, validating form data, Manipulating images, maintaining sessions and much more.
Before start with CodeIgniter programmer should have basic knowledge of MVC .i.e. Model, View & Controller code pattern and how it works. The Controller have the responsibility to choose models, libraries etc. The Model contains the logic of the application. The Views contains the HTML pages used for display.

Getting started:
To start with CodeIgniter firstly download the CodeIgniter package from its official website.
Install CodeIgniter in following steps:
1. Unzip the downloaded package.
2. Upload the CodeIgniter folders and files on your server.
3. Open the application/config/config.php file with any text editor and set your base URL. If you want to use any encryption, set your encryption key.
4. If you want to use Database, open the application/config/database.php file with any text editor and set your database credentials.

If you want to increase the security by hiding the default CodeIgniter files, you can rename the system and application folders to something different. If you do rename these files, you must have to change the variables ($system_path & $application_folder) paths in index.php file.

Now enter your URL in the browser. The default welcome page will be displayed. That means you have successfully installed the CodeIgniter Framework.

No comments:

Post a Comment