CI (CodeIgniter) framework introduction _ PHP Tutorial

Source: Internet
Author: User
Introduction to the CI (CodeIgniter) framework. CodeIgniter is an application framework. 1. free: CodeIgniter is authorized by the open source license of ApacheBSD-style and can be used as long as you want. 2. simplicity: CodeIgniter is a real CodeIgniter application framework

1. free: CodeIgniter is authorized by the Apache/BSD-style open-source license and can be used as long as you like.

2. simplicity: CodeIgniter is truly lightweight, and the core system only needs some very small libraries.

3. MVC: CodeIgniter uses the MVC method to better separate the presentation layer from the logic layer.

--Application flowchart

Index. php acts as the front-end controller and initializes the basic resources required to run CodeIgniter. The Router checks the HTTP request to determine who will process the request. If a cached file exists, it bypasses the normal system execution sequence and is directly sent to the browser. Security ). Before the Application Controller is loaded, HTTP requests and data submitted by any user are filtered. The Controller loads models, core libraries, auxiliary functions, and other resources required to process specific requests. The final View rendering is sent to the content in the Web browser. If Caching is enabled, the view is first cached and can be used for future requests. Model-View-Controller

CodeIgniter is based on the model-view-controller design mode. MVC is a method for separating the logic layer and presentation layer of an application. In practice, because the presentation layer is separated from the PHP script, it allows your webpage to contain only a few scripts.

Model)Represents your data structure. Generally, your model class includes the functions of extracting, inserting, and updating your database data.
View)Is the information displayed to the user. A view is usually a webpage, but in CodeIgniter, a view can also be a page segment, such as the header and end of the page. It can also be an RSS page or any other type of "page ".
Controller)Between the model, view, and any other resources necessary to process HTTP requests IntermediaryAnd generate a webpage.

CodeIgniter is very loose in MVC usage, so the model is not necessary. If you do not need to use this separation method, or find that the maintenance model is much more complex than you think, you can ignore them and create your own applications and use controllers and views at least. CodeIgniter can also be used together with your existing scripts, or allow you to develop the core library of this system on your own, so that you can work in the most suitable way.

Http://www.bkjia.com/PHPjc/781028.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/781028.htmlTechArticleCodeIgniter is an application framework 1, free: CodeIgniter is authorized by Apache/BSD-style open source license, as long as you want to use it. 2. simplicity: CodeIgniter is real...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.