CI (CodeIgniter) Framework Introduction _php Tutorial

Source: Internet
Author: User
Tags codeigniter
CodeIgniter is an application framework

1, Free: CodeIgniter is authorized by Apache/bsd-style Open Source license, you can use it as long as you wish.

2, simple: CodeIgniter is really lightweight, the core system only need some very small library.

3, Mvc:codeigniter using the MVC method, can better make the presentation layer and the logical layer separation.

-- Application flowchart

Index.php as the front-end controller, initializes the basic resources required to run the CodeIgniter. Router checks the HTTP request to determine who will handle the request. If the cache file exists, it bypasses the usual order of system execution and is sent directly to the browser. Security. The HTTP request and any user-submitted data will be filtered before the application controller (application controllers) is loaded. The controller loads the model, the core library, the auxiliary functions, and any other resources required to process a particular request. The final view renders the content that is sent to the Web browser. If the cache is turned on (Caching), the view is first cached, so it will be available for future requests. Model-View-controller

CodeIgniter is based on the model-view-controller design pattern. MVC is a method of separating the logical and presentation layers of an application. In practice, because the presentation layer is separated from the PHP script, it allows you to include only a few scripts in your Web page.

models (model)Represents your data structure. In general, your model class will include the ability to remove, insert, and update your database data.
Views (view)Is the information displayed to the user. A view is typically a Web page, but in CodeIgniter, a view can also be a page fragment, such as a page header or footer. It can also be an RSS page, or any other type of "page".
controllers (Controller)Is between the model, the view, and any other resources necessary to process the HTTP request. Intermediary, and generate Web pages.

The CodeIgniter is very loose in MVC usage, so the model is not required. If you don't need to use this separation method, or find that the maintenance model is much more complex than you think, you can create your own application without having to ignore them and use the controller and view at a minimum. CodeIgniter can also be used in combination with your existing scripts, or allow you to develop a core library of this system on your own, allowing you to work the way that works best for you.

http://www.bkjia.com/PHPjc/781028.html www.bkjia.com true http://www.bkjia.com/PHPjc/781028.html techarticle CodeIgniter is an application framework 1, Free: CodeIgniter is licensed by the Apache/bsd-style Open source license and can be used if you wish. 2, simple: CodeIgniter is really ...

  • 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.