After using PHP for a while, I also heard that PHP is not suitable for making MVC, but I feel that the MVC Architecture is still somewhat beneficial, so I hope you can recommend some good books, articles, websites, and other resources. After using PHP for a while, I also heard that PHP is not suitable for making MVC, but I feel that the MVC Architecture is still somewhat beneficial, so I hope you can recommend some good books, articles, websites, and other resources. Reply: If performance is not taken into consideration, the best MVC is cakephp, and the copy ROR is the closest. activerecord is much more powerful than yii, but the speed has always been controversial.
Codeigniter is the most popular in China. It is a lightweight framework with a loose architecture and a good documentation. You can get started with it. I used some CI early in the morning, but I almost didn't need it later.
Symfony is the most powerful framework for people with relatively high water bottles. It can be used as an enterprise-level product and encapsulated well. The only drawback is that updates are slow because of the number of developers.
Zend Framework seems to be the official MVC, but it is not so easy to use. It is just a library to get up early. Now it is better, but its positioning is still unclear.
Yii is developed by Chinese people. It blindly pursues both the speed and the active record, but it bypasses itself. Its active record is a poor performance, php should still go to better cache (APC, memcache.
Cakephp is my favorite, and the document is poorly written. But when I look at the source code, I will find that it is the easiest to use without performance, the disadvantage is that templatification is not easy to separate code, something produced by MIT.
In addition, joomla in CMS is the first MVC. Although compared with the above framework, joomla is not an authentic MVC, it is also an improvement in CMS, in contrast, drupal and wordpress still advocate hooks.
Good open-source MVC security has always been good, and the escape is escaped, and few variables are covered or something. Just do what you should put, such as long name truncation. 1. There are not many websites that introduce php mvc in the system. I think php100 is not bad. There are many video tutorials.
2. If you want to know about MVC, I think it is better to use more mature php frameworks. codeigniter
Yii framework zend framework is good.
3. I cannot read the books. I usually read the manuals while reading them. This improves the reading speed. Read this book. Chapter 2009 of "Pro Zend Framework Techniques CMS" introduces MVC, which is in place. In fact, I recommend the php manual for the book. I should first read the Chinese version and keep the Chinese version for Information Query (the Chinese version often misses many important warnings. Hi)
Then look at the ci framework, get familiar with it, then look at the yii framework, get familiar with it
Basic OK. You can find an MVC Framework and read the source code directly.
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.