How about the CodeIgniter framework? What are the advantages and disadvantages?

Source: Internet
Author: User
How about the CodeIgniter framework? What are the advantages and disadvantages? I heard that his session is not very useful. How about the CodeIgniter framework? What are the advantages and disadvantages? I heard that his session is not very useful.

Reply content:

How about the CodeIgniter framework? What are the advantages and disadvantages? I heard that his session is not very useful.

Advantages

Introduction and elegance.

Among those PHP frameworks, we can say that the CI thinking mode is the closest to that of PHP beginners. Therefore, many PHP programmers like it after encountering CI. In contrast, Cake's thinking model is too close to ruby. programmers from ROR to PHP should prefer Cake, while I prefer ZendFramwork for a very simple reason, I switched from the Java camp to PHP.

ThinkPHP should also be preferred for small-and medium-sized enterprise frameworks, domestic developers, especially those who use Baidu for search.

Disadvantages

The core of CI is small and lightweight, but many global variables are used, such as global $ IN, $ BM, $ CFG, $ URI, $ LANG, $ OUT ;.

Another drawback may be that I am not used to a single CI instance due to Java usage.

It is in use now... Small php mvc (professional: lightweight ...) Not very fond... In particular, $ this-> load... You can get started with the mvc Framework. after learning the mvc Framework, read zf or yii.

The underlying layer of Hack over CI.

Advantages

The concise implementation of CodeIgniter is one of the two aspects. Another important point is that CI tries its best to take into account PHP4. That is to say, the platform compatibility of CI is very good.

In terms of availability, CI provides a good extension method and comes with many libraries and helper, which is easy to use and convenient to use.

Disadvantages

Inheritance of extended components is conservative, and many practical components need to be added by themselves. This should also be due to streamlining.

In addition, as mentioned by @ codeigniter, there are some design flaws in excessively short pursuits.

Generally, a system that is not too complex for logic can still be competent. If you want to start a real system, you 'd better use Zend or Symfony.

Having been familiar with CI, I feel a little too keen on streamlining. We recommend that you check symfony2.

The CI performance is average, but it is easy to get started. The development documentation is comprehensive, and there are many libraries in the surrounding area. The session module is not easy to use. You can write a lib implementation by yourself, which is not very complicated.

The customer requirements for a project are as follows. The framework is concise, easy to use, simple in structure, and AR implementation is too simple. Many of them need to write their own databases for processing without autoload. The current projects are relatively large and I think CI is not suitable for large-scale projects.

The advantage is small.

The disadvantage is that it is too small.

The most comfortable framework of php is cakephp.

As a beginner PHP framework, the CI framework is undoubtedly the most suitable (so far) PHPer with certain capabilities. We should still look at the Zend framework. Zend is indeed very large and bloated. But the code is very standard.

I used the CI thoroughly and wrote some helper library myself before learning Symfony2.

Advantages: easy to learn and clear Archives

Disadvantages: A lot of work requires a certain amount of hack, or some tips should not be used. The development of the Framework is slow. The original company has abandoned development and kept development in a stopped state.

It is small and lightweight. It is easy to develop small projects. The Chinese PHP community is developed with ci.

Point of absence: Ellislab wants to find a new house for Codeigniter and wants to release Codeigniter.

Http://ellislab.com/blog/entry/ellislab-seeking-new-owner-for-codeigniter

Has session been used in CI... implemented through cookie...

Advantages: No configuration required, quick start, and rich documentation.
Disadvantage: After using this framework, the concept of object-oriented programming is blurred...

Advantages

Simple, easy to use, and low learning curve. Especially for users who are new to php, using the ci framework can quickly crash the code and make it easy to manage.

Disadvantages

As a framework, many things are outdated. Many popular new functions are not available, such as ORM, routes, template, command line tool, Migrateions, and composer by default.

In general, as a newbie, ci is a good choice. In other words, my first project was developed using ci.

I have read the answers to this question several times and now I want to talk about my own ideas.
The so-called MVC framework is actually the front-end Controller mode of Router + Controller in my eyes, and encapsulates the database class and View class. As long as this step is done simply, it can be called an MVC framework.
For example, some frameworks called Restful frameworks only improve the front-end Controller mode of Router + Controller to make it more in line with the Rest idea, and may omit the encapsulation of database classes and view classes.
All of these are called backend frameworks.
To be honest, the CI framework is very rough, and the database class and View class are poorly encapsulated, but it is very friendly to new PHP users, which is its biggest advantage.
First of all, although the implementation is rough, after all, the implementation of the backend framework from the Router to the Controller, a variety of security aspects do not need to be considered by the user, can also serve as a small project basis.
Second, the code is very suitable for beginners to understand. It is helpful for new PHP users to implement development in the template language and understand the framework.
Finally, in this era when the third-party modules of composer are full of sky, CI is no longer so compatible. PHP programmers must not stop at this framework. They need to learn more about more modern frameworks such as laravel and symfony.

Not updated for a long time

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.