"Frame comparison" Yii and thinkphp contrast, said the pros and cons, have been used to see

Source: Internet
Author: User
Tags learn php manual writing php framework
Recently has been using thinkphp, but every time I heard a lot of people say that Yii is particularly strong, especially the load capacity.
Today downloaded Yii 1.1.14 The latest version, looked down, feel the file structure is quite chaotic. And there's a lot of PHP in the introduced array.


have both used yii and used thinkphp, and they are more familiar with.
Talk about the pros and cons of both of them.


Reply to discussion (solution)

Go to the Yii community to turn around, very strange, not 404 is 500,firefox also many layout dislocation incompatible. A feeling of unattended care.


For the first time use the frame, with TP;
English level is not high, with TP;
Other things to do with their own eyes.

If you come from Java or C # This object-oriented language with YII will have more experience. After all, Yii is a purely object-oriented implementation.
The inheritance of the inside, the functionality of the components provided, are quite powerful.
Especially in Yii2, because of the addition of namespaces, it should be said that the YII2 directory structure is clearer.
You can see http://www.yiifans.com.

If you come from Java or C # This object-oriented language with YII will have more experience. After all, Yii is a purely object-oriented implementation.
The inheritance of the inside, the functionality of the components provided, are quite powerful.
Especially in Yii2, because of the addition of namespaces, it should be said that the YII2 directory structure is clearer.
You can see http://www.yiifans.com.



What do you think of symfony2?

You don't have to tangle with these things unless someone forces you to use them (but there's no need to tangle).
I think if a framework doesn't allow people to get started within four hours, that's not a good frame.

Recently in the study of Laravel. It's nice to see other frames. CodeIgniter or TP Yii, etc.
PHP Learning Exchange Group 344192304


If you come from Java or C # This object-oriented language with YII will have more experience. After all, Yii is a purely object-oriented implementation.
The inheritance of the inside, the functionality of the components provided, are quite powerful.
Especially in Yii2, because of the addition of namespaces, it should be said that the YII2 directory structure is clearer.
You can see http://www.yiifans.com.



What do you think of symfony2?


Symfony2, what do you say? I feel like a separate class (that's what you call a component), and each part can be used alone.
I'd say I feel more like a class library.


All very good and very powerful!

TP is also relatively simple and useful. But tp3.2 has a bug. Business is still a lot of trouble.
YII feels C programmer style. From the community, there have been no updates for 3 years. Yii listens to others to say that it is stronger than TP.
PHP expert Communication QQ Group: 317172514

thinkphp feeling design is not good, many functions are smart, there is no need to have, increase the cost of learning

Could that be better? Chinese and foreign

What did I say, Baidu Hairenbujian

Official website is: http://www.yiiframework.com

Go to the Yii community to turn around, very strange, not 404 is 500,firefox also many layout dislocation incompatible. A feeling of unattended care.


Today I studied the framework of yii, feeling that the framework is an idiot. Garbage. Never use, the author retarded.
Thinkphp is a pretty good frame before he has a good frame. The author's level is quite high.

Today I studied the framework of yii, feeling that the framework is an idiot. Garbage. Never use, the author retarded.
Thinkphp is a pretty good frame before he has a good frame. The author's level is quite high.



I also looked at Yii, including Yii2. But I feel he is very different from Symfony, CakePHP, Laravel.
The biggest point is the high degree of coupling, which requires programmers to be able to do more than one frame at a time.
But the popularity of this framework is still very high, why does the landlord think so

Yii's author is also the author of previous Prado, Prado feel very much like VCL, such as the event driver in PHP, even the naming rules of the class are very similar
VCL is a big inheritance tree, this is nothing to spray, Framework+ide is a set of solutions
So Yii is just like PRADO/VCL's.

PS: Say the pros and cons to be able to talk about ideas, no brain spray is really boring
http://weavora.com/blog/2013/03/26/why-we-prefer-symfony2-over-yii-framework/
This article says that the problem with Yii is still relatively pertinent.


Today I studied the framework of yii, feeling that the framework is an idiot. Garbage. Never use, the author retarded.
Thinkphp is a pretty good frame before he has a good frame. The author's level is quite high.



I also looked at Yii, including Yii2. But I feel he is very different from Symfony, CakePHP, Laravel.
The biggest point is the high degree of coupling, which requires programmers to be able to do more than one frame at a time.
But the popularity of this framework is still very high, why does the landlord think so

TP is also relatively simple and useful. But tp3.2 has a bug. Business is still a lot of trouble.
YII feels C programmer style. From the community, there have been no updates for 3 years. Yii listens to others to say that it is stronger than TP.
PHP expert Communication QQ Group ...



Before the tp3.1.x is really stable, but tp3.2.x really a lot of problems, such as rewriting, in fact, the route is not supported at all. e-mail to the official no repair, no fix, the official website has not been updated, many times TP download has problems, always can not download, a little doubt that TP is to close the door.
Yii does not, his ideas and style with the mainstream PHP framework are different, such as Laravel symfony these, Yii's thinking and they are too big. Don't dare to use


1,tinkphp cock wire.
2,yii local tyrants.
That's the difference.

I feel tp3.2. Although there is a problem, it is also easy for us to fix those problems, such as table support multi-table auto-prefix problem. Overall, TP structure thinking relatively clear, more suitable to develop, tp3.2 best to php5.4 above support. and the Yii file structure is too complex, more coupling, debugging program error is not so strong.

So, how does Yii write a multi-lingual version?

Create a folder in the message en zh and then yii::t (' file ', ' content '); The specific crossing net forgot

Re-read the YII2, the final evaluation is the rational person must not use.


Today I studied the framework of yii, feeling that the framework is an idiot. Garbage. Never use, the author retarded.
Thinkphp is a pretty good frame before he has a good frame. The author's level is quite high.



I also looked at Yii, including Yii2. But I feel he is very different from Symfony, CakePHP, Laravel.
The biggest point is the high degree of coupling, which requires programmers to be able to do more than one frame at a time.
But the popularity of this framework is still very high, why does the landlord think so



What a joke, Yii2 is very flexible, why can not do a number of different framework of the project?
Yii2 's soul is based on a module class, and the module can have sub-module.

And you said the YII2 coupling is very high, I really do not understand
Now the popular framework is basically based on the PSR-4 protocol automatic loading mechanism, you use YII2, want to use other framework module, write good namespace, directly use just.
YII2 uses the popular di dependency injection, which is to solve the coupling problem. You dare say the YII2 coupling degree is high ...

Again, Yii2 is very flexible, he will not use, do not blame Yii2

The framework is just a tool, you use it to help you, handy, is a good tool.

The individual is now using TP. For the load, as well as some big data processing, I think this is the server, database do things, if your server set up performance is very high, the regular master-slave database, and other optimizations do really extreme, then you can learn a bit of yii. But if you really do that, it's a technical manager or something. TP is now used by so many people, there is a reason for his existence, and the framework of this thing must be based on the actual situation of your project to consider.

Individuals feel that the high cost of learning framework, the risk is very large, so yii is not suitable for me, also not ready to learn.

Two of them are not very good.

But it is still to say that thinkphp is rubbish in the garbage.

You don't have to tangle with these things unless someone forces you to use them (but there's no need to tangle).
I think if a framework doesn't allow people to get started within four hours, that's not a good frame.



Very agree, many times, PHP writing is not a problem, the problem is to learn PHP framework, learning costs are too high, reusability is not high, you jump a company, you may have to learn another framework.


You don't have to tangle with these things unless someone forces you to use them (but there's no need to tangle).
I think if a framework doesn't allow people to get started within four hours, that's not a good frame.



Very agree, many times, PHP writing is not a problem, the problem is to learn PHP framework, learning costs are too high, reusability is not high, you jump a company, you may have to learn another framework.



Back to this post, this post was written about 1 years ago, when Yii2 was not released. I used the thinkphp3.2 yii1.1, now using thinkphp3.2.3 (the one that supports namespace refactoring), and YII2, the new evaluation yii2 better than thinkphp, is the norm. And, of course, there will be a more perfect

What qualities does a good framework need?
Simple and easy to get started? no!!! Unless you do the project is a one-time, do not need to test, no longer maintenance.
Automatically generate code? no!!! Unless your business logic is only added and modified, so you need the so-called framework, rather than use phpMyAdmin.
A good framework of its own code architecture should be very reasonable, with good coding and file directory structure, and even can constrain the code developers.
Must have a complete exception handling mechanism, easy to debug and test.
It is easy to be compatible with other frameworks or libraries, and the whole project is not only used to a frame at all times.
Provides good extensibility, the built-in features of the framework don't necessarily fit me
On this basis, the appropriate increase in operational efficiency, it is very good.

Weak weak Ask the next
Is Osadmin a frame?
Is the US-group framework?
WordPress calculation framework?
Ecshop the frame?
Dicuz, what's the count?
People like to talk about the framework well, as if the child is in the bullying, it is only a discussion, if you really study, or to change the good, I do not say,

Have you ever made a decent product out of it???
Tribute to Dai Zhikang
So many boring grandchildren.



Weak weak Ask the next
Is Osadmin a frame?
Is the US-group framework?
WordPress calculation framework?
Ecshop the frame?
Dicuz, what's the count?
People like to talk about the framework well, as if the child is in the bullying, it is only a discussion, if you really study, or to change the good, I do not say,

Have you ever made a decent product out of it???
Tribute to Dai Zhikang
So many boring grandchildren.



The problem is that without frames, people will be despised. So I finally had to use the MVC framework ....
The general level of domestic still stay in Discuz ecshop, terrible ... Some companies recruit PHP programmers actually to do dedecms template ....




Always using thinkphp to feel that everything else is too advanced.


Weak weak Ask the next
Is Osadmin a frame?
Is the US-group framework?
WordPress calculation framework?
Ecshop the frame?
Dicuz, what's the count?
People like to talk about the framework well, as if the child is in the bullying, it is only a discussion, if you really study, or to change the good, I do not say,

Have you ever made a decent product out of it???
Tribute to Dai Zhikang
So many boring grandchildren.



The problem is that without frames, people will be despised. So I finally had to use the MVC framework ....
The general level of domestic still stay in Discuz ecshop, terrible ... Some companies recruit PHP programmers actually to do dedecms template ....





No need to tangle, this programmer will be eliminated sooner or later. The development of events has its own rationale.
are now loosely coupled, components, unit tests are required.
Of course, non-team work, that is, manual writing is no problem.

There is a very interesting word in English, OK
In Chinese, there is also a powerful hehe
Mo to the situation on the hero, how can foreigners know Chinese Oracle to classical language but today's network popular words of sadness and bright spots, the Chinese people will know 26 English letters of the International well-known, as long as you like, with good, then it is nice

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