[Framework comparison] comparison between Yii and ThinkPHP: Advantages and disadvantages. if you have used ThinkPHP, you can see that ThinkPHP has been used recently. but every time I hear many people say that Yii is very powerful, especially powerful load capabilities.
Today, I downloaded the latest version of Yii 1.1.14. after reading it, the file structure is messy. In addition, many PHP commands are executed in the introduced array.
Have you ever used Yii or ThinkPHP and are familiar with them.
Let's talk about their advantages and disadvantages.
Reply to discussion (solution)
I went to the Yii community and turned around. it was strange that firefox was not compatible with 404 or 500. It is a kind of unattended feeling.
Use the framework for the first time and TP;
Low level of English, with TP;
In other cases, you can do it yourself.
If you use yii from an object-oriented language such as java or c #, you will feel more. After all, yii is implemented only by Object-oriented means.
The inheritance relationships and provided component functions are quite powerful.
Especially in yii2, the directory structure of yii2 is clearer because namespace is added.
Look at the http://www.yiifans.com
If you use yii from an object-oriented language such as java or c #, you will feel more. After all, yii is implemented only by Object-oriented means.
The inheritance relationships and provided component functions are quite powerful.
Especially in yii2, the directory structure of yii2 is clearer because namespace is added.
Look at the http://www.yiifans.com
What do you think of symfony2?
In fact, you don't have to worry about these things unless someone forces you to use them (but there is no need to worry about it)
In my opinion, if a framework cannot be used within four hours, it is not a good framework.
I recently studied laravel. it feels good. I suggest you look at other frameworks, such as codeigniter or tp yii.
Php learning exchange group 344192304
If you use yii from an object-oriented language such as java or c #, you will feel more. After all, yii is implemented only by Object-oriented means.
The inheritance relationships and provided component functions are quite powerful.
Especially in yii2, the directory structure of yii2 is clearer because namespace is added.
Look at the http://www.yiifans.com
What do you think of symfony2?
In my opinion, symfony2 is an independent class (that is, a component), and each part can be used independently.
I want to say that I feel more like a class library.
Very good and powerful!
TP is also relatively simple and easy to use. However, tp3.2 has bugs. there is still a lot of trouble in commercial use.
YII feels like a C programmer. From the perspective of the community, it has not been updated for three years. YII is more powerful than TP.
PHP expert exchange qq group: 317172514
Thinkphp feels that the design is not very good. many functions are self-developed, and there is no need to do so, increasing the learning cost.
Is that comparable? China and foreign
What did I say? BAIDU is harmless.
Official website: http://www.yiiframework.com
I went to the Yii community and turned around. it was strange that firefox was not compatible with 404 or 500. It is a kind of unattended feeling.
I learned about the YII Framework today. I feel this framework is an idiot. Garbage. Never use it. The author is mentally retarded.
Thinkphp is a pretty good framework without its own excellent framework. The author level is quite high.
I learned about the YII Framework today. I feel this framework is an idiot. Garbage. Never use it. The author is mentally retarded.
Thinkphp is a pretty good framework without its own excellent framework. The author level is quite high.
I have also studied Yii, including Yii2. but I feel that he and symfony, cakephp, and laravel have different ideas.
The biggest difference is that the coupling degree is very high, and programmers are not allowed to do multiple projects with different frameworks at the same time.
However, the popularity of this framework is still very high. Why does the landlord think so?
The author of Yii is also the author of PRADO. PRADO feels like VCL, such as event-driven in PHP, and even naming rules for classes.
VCL is a big inheritance tree, which is useless. Framework + IDE is a set of solutions.
So Yii is very similar to PRADO/VCL.
PS: the advantages and disadvantages should be something to say. it's boring to be brainless.
Http://weavora.com/blog/2013/03/26/why-we-prefer-symfony2-over-yii-framework/
The Yii issue in this article is still pertinent.
I learned about the YII Framework today. I feel this framework is an idiot. Garbage. Never use it. The author is mentally retarded.
Thinkphp is a pretty good framework without its own excellent framework. The author level is quite high.
I have also studied Yii, including Yii2. but I feel that he and symfony, cakephp, and laravel have different ideas.
The biggest difference is that the coupling degree is very high, and programmers are not allowed to do multiple projects with different frameworks at the same time.
However, the popularity of this framework is still very high. Why does the landlord think so?
TP is also relatively simple and easy to use. However, tp3.2 has bugs. there is still a lot of trouble in commercial use.
YII feels like a C programmer. From the perspective of the community, it has not been updated for three years. YII is more powerful than TP.
PHP experts exchange qq group...
Previously, TP3.1.x was stable, but TP3.2.X had many problems, such as rewriting. In fact, routes are not supported at all. Emails sent to the official team have not been fixed, and the official website has not been updated. many times there are problems with TP download and it is always unable to be downloaded. it is a bit skeptical that the TP will be closed.
Yii doesn't work. his ideas and styles are different from those of mainstream PHP frameworks, such as laravel symfony. Yii's ideas differ greatly from those of them. Dare not use
1. tinkPHP silk.
2. YII local tyrants.
This is the difference.
I feel that although tp3.2 has some problems, it is easy to fix those problems. for example, the table support technology automatically adds a table prefix to multiple tables. In general, the tp structure is relatively clear and more suitable for development. tp3.2 should be supported by php5.4 or above. The yii file structure is too complex and has many conformances. the debugging program errors are not that strong.
By the way, how does yii write multi-language edition?
Create a folder en zh in the message and then YII: t ('file', 'Content ').
After reading Yii2 again, the final comment is that rational people do not use Yii2.
I learned about the YII Framework today. I feel this framework is an idiot. Garbage. Never use it. The author is mentally retarded.
Thinkphp is a pretty good framework without its own excellent framework. The author level is quite high.
I have also studied Yii, including Yii2. but I feel that he and symfony, cakephp, and laravel have different ideas.
The biggest difference is that the coupling degree is very high, and programmers are not allowed to do multiple projects with different frameworks at the same time.
However, the popularity of this framework is still very high. Why does the landlord think so?
Yii2 is flexible. Why can't I create multiple projects with different frameworks?
The soul of yii2 is based on a Module class. a Module can also have a submodule.
In addition, yii2 is highly coupled.
Now the popular framework is basically based on the automatic loading mechanism of psr-4 protocol, you use yii2, want to use other framework modules, write the namespace, use it directly.
YII2 uses popular DI dependency injection to solve the coupling problem. You dare say that yii2 is highly coupled...
Again, yii2 is flexible and won't be used by you.
The framework is just a tool. it is a good tool that helps you.
I am using TP now. For load and some big data processing, I think this is what servers and databases do. if your server is set up with high performance, regular master/slave databases, if other optimizations are really excellent, you can study YII. But if you do, it would be a technical manager. TP is currently used by so many people, there is still a reason for its existence, and the framework should also be considered based on the actual situation of your project.
I personally think that the framework with a high learning cost is highly risky. Therefore, yii is not suitable for me and is not prepared to learn.
Neither of them is good.
However, thinkphp is garbage.
In fact, you don't have to worry about these things unless someone forces you to use them (but there is no need to worry about it)
In my opinion, if a framework cannot be used within four hours, it is not a good framework.
I agree very much. in many cases, PHP compilation is not a problem. The problem is that you are learning the PHP framework, and the learning cost is too high and the reusability is not high, you may need to learn another framework.
In fact, you don't have to worry about these things unless someone forces you to use them (but there is no need to worry about it)
In my opinion, if a framework cannot be used within four hours, it is not a good framework.
I agree very much. in many cases, PHP compilation is not a problem. The problem is that you are learning the PHP framework, and the learning cost is too high and the reusability is not high, you may need to learn another framework.
Return to this post. I wrote this post about a year ago. at that time, yii2 was not released yet. I used thinkphp3.2 yii1.1, and now I am using thinkphp3.2.3 (which supports the reconstruction of namespace) and yii2. The new evaluation of yii2 is better than thinkphp, in terms of specifications. Of course, there will be more comprehensive
What qualities should a good framework possess?
Easy to use? NO !!! Unless your project is one-time, you do not need to test it and do not need to maintain it.
Automatically generate code? NO !!! Unless you only need to add, delete, query, and modify the business logic, do you still need the so-called framework? it is better to use phpMyAdmin.
The code architecture of a good framework should be reasonable, with good coding specifications and file directory structure, and can even constrain the code of standardized developers.
A complete exception handling mechanism is required for debugging and testing.
It is easy to be compatible with other frameworks or libraries. The entire project does not always use only one framework.
Provides good scalability, and the built-in functions of the framework are not necessarily suitable for me
On this basis, it is very good to appropriately improve the operation efficiency.
Weak question
Is OsAdmin a framework?
Is the Meituan computing framework?
Is Wordpress a computing framework?
ECShop computing framework?
What is Dicuz?
Everyone is so fond of discussing that framework. it's like a child playing a rogue game. it's just a discussion. if you have really studied it or changed it yourself, I have nothing to say,
Are there any decent products ???
Honor Dai Zhikang
So many boring disciples
Weak question
Is OsAdmin a framework?
Is the Meituan computing framework?
Is Wordpress a computing framework?
ECShop computing framework?
What is Dicuz?
Everyone is so fond of discussing that framework. it's like a child playing a rogue game. it's just a discussion. if you have really studied it or changed it yourself, I have nothing to say,
Are there any decent products ???
Honor Dai Zhikang
So many boring disciples
The problem is that, without a framework, it will be despised. So I had to use the MVC framework at last ....
The general level in China is still at discuz ecshop, which is terrible... Some companies hire PHP programmers to do DEDECMS templates ....
Thinkphp has always been used. I think it's too advanced.
Weak question
Is OsAdmin a framework?
Is the Meituan computing framework?
Is Wordpress a computing framework?
ECShop computing framework?
What is Dicuz?
Everyone is so fond of discussing that framework. it's like a child playing a rogue game. it's just a discussion. if you have really studied it or changed it yourself, I have nothing to say,
Are there any decent products ???
Honor Dai Zhikang
So many boring disciples
The problem is that, without a framework, it will be despised. So I had to use the MVC framework at last ....
The general level in China is still at discuz ecshop, which is terrible... Some companies hire PHP programmers to do DEDECMS templates ....
Don't worry, such programmers will be eliminated sooner or later. The development of events is justified.
Currently, components and unit tests are all loosely coupled.
Of course, manual writing is not a problem for non-team jobs.
There is an interesting word in English, OK
The Chinese language is also powerful.
How can foreigners learn about Oracle and classical Chinese, but today's Internet buzzwords are sad and bright. how can Chinese people know the world famous 26 English letters if you like them, well, it's good.