Advantages and disadvantages of qeephp and CI

Source: Internet
Author: User
Tags php basics
Qeephp and CI have made several projects with qeephp. I suddenly want to learn a new framework. I feel that ci is good and I don't know the advantages and disadvantages between them. I hope you can speak freely, you can also recommend a good framework ., CI is simple, easy to use, and has complete Chinese documents. The following are the main advantages of CI: CodeIgniter & nbsp; what is it? Advantages and disadvantages of CodeIgnit qeephp and CI
I used qeephp for a few projects and suddenly wanted to learn a new framework. I felt that ci was good and I didn't know the advantages and disadvantages between them. I hope you can speak freely and recommend a good framework.
------ Solution --------------------
CI is simple, easy to use, and has complete Chinese documents. The following are the main advantages of CI:

What is CodeIgniter?
CodeIgniter is an application framework
CodeIgniter is a toolkit provided for PHP programmers who write network applications. Its goal is to achieve faster project development than writing code from scratch. For this reason, CI provides a rich set of class libraries to meet common task requirements, A simple interface and logical structure are provided to call these libraries. CodeIgniter can minimize the amount of code for tasks to be completed, so that you can put more energy into project development.

CodeIgniter is free of charge
CodeIgniter is authorized by the Apache/BSD-style open-source license and can be used as long as you like. Read the license agreement for more information.

CodeIgniter runs on PHP 4
CodeIgniter is fully compatible with PHP 4. Although PHP 5 has more advantages in object-oriented processing, we should have used this advantage to simplify our (under PHP4) creative solution (for example, multi-inheritance) work, however, PHP 5 is not widely used when we build this framework, which means that (if PHP 5 is used for writing) we will discard most potential users. Mainstream operating system vendors such as REDHAT are very slow to support PHP5, and they are unlikely to fully support PHP5 in the short term. Therefore, we believe that writing CodeIgniter with PHP 5 is not in the best interests of the PHP community.

Note: CodeIgniter can run in the PHP5 environment. But it does not use the advanced features unique to PHP5.

CodeIgniter is lightweight
Truly lightweight. Our core system only requires some very small libraries, which is totally different from those that require more resources. The additional library files are loaded only when the request is made. Therefore, the core system is fast and lightweight.

CodeIgniter is quick
Fast. It should be difficult to find a framework that performs better than CodeIgniter.

CodeIgniter uses M-V-C models
CodeIgniter uses the Model-View-controller (Controllers) method to better separate the presentation layer from the logic layer. This is very useful to the Template Designer of the project, which minimizes the amount of program code in the template. We have introduced this in the respective pages of MVC.

CodeIgniter generates a Clean URL
The URL generated by CodeIgniter is very clean and friendly to search engines. Unlike the standard "string query" method, CodeIgniter uses the segment-based method:

Example.com/news/article/345
 
Note: the index. php file is included in the URL by default, but you can change this setting by changing the. htaccess file.

Powerful CodeIgniter
CodeIgniter has a full range of class libraries to complete most of the network development tasks that are commonly required, including reading databases, sending emails, confirming data, saving sessions, and performing Image operations, and support XML-RPC data transmission.

CodeIgniter is scalable
This system can be easily extended through plug-ins and helper class libraries, or through extension classes and system hooks.

CodeIgniter does not require a template engine
Although CodeIgniter does have an optional template parser program, you do not need to use the template. The template engine is totally different from the performance requirements of localized PHP code. to use the template engine, we need to learn its syntax, which is at least a little easier than learning PHP Basics. Consider the following PHP code:











Then compare the pseudocode used by the template engine:



    {Foreach from = $ addressbook item = "name "}

  • {$ Name}


  • {/Foreach}



Indeed, the template engine code in this example is clear, but this brings about a performance problem, because pseudo code must be converted to PHP before it can run. Our goal is to maximize performance, so we choose not to use a dedicated template engine.

CodeIgniter has been thoroughly documented
Programmers like to write code and hate writing documents. Of course, we are the same, but since the document is as important as the code itself, we have to complete it. Besides, our code resources are extremely clean and easy to annotate.

CodeIgniter has a friendly user community
You can see an active and active user community in our community forum.


------ Solution --------------------
The data model in QeePHP is relatively rigid, for oo and oo, rather than for database query optimization.
For example, every time it queries the table structure .....

And dislike
------ Solution --------------------
Ci is compatible with php4 and has comprehensive Chinese documents. The design at the model layer is worse than that at cakephp.
------ Solution --------------------
Because it requires a database to be mapped, it must have a table structure! Then generate the model object!

This is the same as cakephp!


But ci and zendframe do not do this, especially zendframe!

It believes that the database model does not have to map tables!

On the contrary, the database model should be based on the business logic! (This is faster)

Also related to this are form verification, some in the model class, and some in the controller method!

For example, zend is in the controller method! (This is also because some verifications may be unrelated to the database or associated with multiple tables)


------ Solution --------------------
Ci is easy to use but not suitable for large websites

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.