What about the CodeIgniter framework? What are the pros and cons?

Source: Internet
Author: User
Tags codeigniter
What about the CodeIgniter framework? What are the pros and cons? I heard that his session was not very useful.

Reply content:

What about the CodeIgniter framework? What are the pros and cons? I heard that his session was not very useful.

Advantages

Introduction, Elegance.

In those PHP framework, it can be said that the mode of thinking of CI is closest to PHP junior programmer, so many PHP programmers encounter CI after the love. By contrast, Cake's mindset is too close to Ruby, and programmers who go from ROR to PHP should prefer Cake, and I prefer zendframwork for the simple reason that I'm going from the Java camp to PHP.

The same is the SME framework, domestic developers, especially the use of Baidu search developers, should be more favored thinkphp.

Disadvantages

CI core Small, very lightweight, but because blindly pursuit of small, performance, but also used a lot of global variables, such as global $IN, $BM, $CFG, $URI, $LANG, $OUT;.

There is also a disadvantage, perhaps because I use Java, the single instance of CI is very unaccustomed.

Now I'm using ... Small PHP MVC (professional point called lightweight ... ) Not very much like ... Especially $this->load ... Let's get started, to understand the MVC framework or to do it, and then just look at ZF or yii.

Hack over the lower level of CI.

Advantages

CodeIgniter implementation of the concise understanding is one aspect, another very important point is that CI do its best to take into account the PHP4, that is, CI platform compatibility is very good.

In terms of usability, CI provides a good way to expand and comes with a lot of library and helper, simple to use and easy to use.

Disadvantages

Inheritance of extension components is conservative and many utility components need to be added themselves. This should also be done in order to keep it streamlined.

There is also the @codeigniter mentioned, the excessive pursuit of short, there are some design flaws.

Generally take to do logic is not overly complex system or can be competent, and if you want to move the true, it is best to use Zend or Symfony bar.

Touch a little ci feels a little too lean. Suggest to see Symfony2, quite praise

CI performance in general, but it is easy to get started, the development of documents compared to the whole, some of the surrounding children's libraries are more, the session module is not good, you can write a Lib implementation, not very complex.

Now a project in which the customer asks for. Simple framework, easy to use, simple structure, AR implementation is too simple, many need to write their own library processing, no autoload; now do the project relatively large, think CI is not suitable for large projects

The advantage is small.

The disadvantage is too small.

The most comfortable framework for PHP is cakephp.

As a primary PHP to learn the framework, the CI framework is undoubtedly the most suitable (so far) have a certain ability to phper, or should look at the Zend Framework, Zend is really big, bloated. But the code is very canonical.

First to use CI, write some helper library to learn Symfony2 not later

Advantages: Easy to learn the file clearly

Cons: A lot of work requires a certain amount of hack, or the use of some techniques should not be used to bypass. The framework developed slowly, the original company has abandoned to continue developing, keeping the development in a stopped state

Small and light, for the general development of small projects convenient, PHP Chinese community is developed with CI.

Just say: Ellislab want to find new things for codeigniter, to let go of CodeIgniter

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

CI has been useful in the session? is implemented via cookies ...

Benefits: No configuration, quick start, rich documentation.
Cons: After using this framework, the concept of object-oriented programming is blurred ...

Advantages

Simple, easy to get started, low learning curve. Especially for beginners of PHP users, the use of the CI Framework can quickly code the organization, easy to manage.

Disadvantages

As a framework, many things are out of date. There are not many popular new features, such as ORM, routes, template, no command-line tools, no popular migrateions, default composer, and so on.

In general, as a novice, CI is a good choice, saying that my first project is to use CI development.

I've seen the answers to this question several times, and now it's time to say what you think.
The so-called MVC framework, in my eyes, is nothing but a router+controller front-end controller pattern, plus a database class and a view class. As long as this step is simple, it can be called an MVC framework.
Like some frameworks called the RESTful framework, the Router+controller front controller pattern is improved to make it more restful, and then the encapsulation of database classes and view classes may be omitted.
For these, I am unified called the back-end framework.
To be honest, the framework of CI is very rough, the package of database class and view class is very weak, but the new PHP is very friendly, this is its biggest advantage.
First of all, although the implementation of rough, but after all, the implementation of the backend framework from router to controller, a variety of security things do not need to be considered by users, but also to serve as a basis for a small project.
Second, the code is very much in line with the thinking of the novice programmer and is well suited to novice programmers to understand. It is helpful for PHP newcomers to implement the development of template language to understand framework development.
Finally, in this composer third-party module, the era of flying, CI is not very timely. PHP programmers must not stop in this framework, need to further learn laravel,symfony and other more modern framework.

A long time not updated

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