Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the misunderstandings in the development of PHP framework

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "what are the misunderstandings in the development of PHP framework". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the misunderstandings in the development of PHP framework"?

1. Make the controller so powerful that it deviates from the essence of the framework.

The controllers of some frameworks can almost completely replace rewrite, but does this make sense? It's just a boring farce. As a framework, the most important thing to do is to be easy to use and to provide more libraries that are really practical, stable and necessary for Web. (in practice, system class libraries and business class libraries are often different.) programmers who have been programmers for many years know that the difference between veterans and novices is that veterans usually have a lot of code that is immediately available, while novices often have to find their own. If the framework can't make it easy for both beginners and veterans to implement a function, then why do you want the framework to do it? Therefore, if you go too far with the controller, you will deviate from the principle and may cause some trouble to the development.

2. Ideologically, it is still in accordance with the old way of thinking of Java, which is more suitable for developing enterprise management software of Bamp S application, but deviates a little from the idea of Web.

Take the idea of authority and modularization, for example, the general framework is fixed to app, but in practical application, the APP of Web usually has three layers, namely: administrator background management application pool, member foreground member control center application pool, public public browsing information application pool.

Although the traditional framework is isolated through the permission system, it usually mixes the three applications of administrator, member and public together, and does not isolate the security level, which is actually disadvantageous both ideologically and for security management. Take the traditional forum program, for example, administrators usually have to re-enter the password if they want to log on to the background. In fact, this is indeed beneficial to security. However, from the perspective of abstract thinking, this is a separation of the application of the administrator, and these applications are regarded as the concept of "pool" for a moment, so we can not use the idea of the traditional Bhand S enterprise management software to design.

3. The model of View is too rigid to be used in commercial applications.

The business user here refers to the application to be released to a third party, take CakePHP as an example, because the view is too fixed, if you want to design it to be really easy for artists to modify, and support multi-template mode, it is almost necessary to completely abandon its original view mechanism, many things are too academic, and it is a little different from the actual application, coupled with the idea of template engine, it is difficult to achieve a real unity, thus making the PHP framework completely chaotic. Since everyone has a misunderstanding, it is inevitable that such a problem occurs.

4. The framework itself is so large that in actual development, many people simplify the framework to varying degrees, resulting in serious disunity.

Take the official ZendFramework, for example, in fact, some core files take more than 0.05 seconds to load. With this kind of thing, it is almost impossible to do some high-performance systems, but in foreign countries, because of respect for the rights of knowledge products, people's systems will not be tampered with without authorization, because there are a lot of things to improve the performance of PHP. But this is not the best solution after all.

Thank you for your reading, the above is the content of "what misunderstandings exist in the development of PHP framework". After the study of this article, I believe you have a deeper understanding of what misunderstandings exist in the development of PHP framework, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report