The core of Web basic development is the core of web basic development. The core of Web basic development is to solve the problem. The core of web basic development is to solve the problem, which is often the purpose of those frameworks-to solve the problem. 1. convenient D. core issues to be solved in basic Web development, and core issues of basic web development
The problems to be solved in basic Web development are often the purpose of those frameworks-to solve the problems.
1. convenient Db operations;
2. Efficient form processing;
3. flexible Url routing;
4. reasonable code organization structure;
5. eXtended Architecture caching, security, and DB scaling
6. rich class libraries;
The philosophy of each framework determines its end user group.
Form processing, because both front-end and back-end encoding are involved, is often the most complicated and time-consuming process in development.
Therefore, many people try to encapsulate form verification rules and even form controls on the front and back to reduce tedious and repetitive coding. Common solutions include:
1. Pear QuickForm
2. Zebra From
3. Yii Model
4. Other frameworks with built-in Form processing
The first and second solutions are integrated solutions. they fully construct form elements and corresponding verification rules through PHP-of course, they can also customize the front-end display scheme to implement one encoding, which is common to the front and back ends, it is already an amazing design.
However, the coupling is still a bit high, and the collection of form data is often used to interact with the database, that is, the data in the form is generally used for DB operations. After the form data is processed, it does not mean that the database operation can be used directly.
Yii, especially its AR solution: the slave database is used as the starting point to reverse push the application scenario. Through its Gii tool, a DB model is generated based on the database structure, and various DB rules are automatically mapped to the model class. The field verification rules are combined with the corresponding ActiveForm pendant to implement synchronous verification at the front and back ends, and the coupling degree is very low. the front-end interface can be completely customized. The basic verification rules can be expanded on their own according to uniform specifications, while ensuring that each verification rule has a high degree of reusability.
This is the most reasonable solution I have ever seen.
I will not talk more about it, but I will give a summary of my thoughts.
How to thoroughly experience Java Web development-core basics
This book is awesome! I have seen the best java web, but I have focused on SERVLET and JSP! We are looking forward to the early publication of "deep experience of Java Web development-Advanced features", which will introduce advanced features such as filters.
In-depth experience of Java Web development-Advanced features + in-depth experience of Java Web development-detailed comparison of core basics and java web development
This learning is sequential .. you must first learn-thoroughly experience the Java Web development story-core basics and java web development details-if you dare to get started, learn first-thoroughly experience the Java Web development story-core basics-if there is a little Foundation first Learning-java web development details-Best Learning-in-depth experience of Java Web development-Advanced features --
Recommended instructor --
Zhang Xiaoxiang's books have a connotation. they are written in a more detailed manner. they all go deep into the interior ..
Instructor Li Xinghua's book is more speed-oriented. he can get started at the fastest time... but it won't work if he goes deep...
I personally think that teacher Li Xinghua's book is the best entry...
The problems to be solved in the basic development of Web hosting are often the purpose of those frameworks-to solve the problems. 1. convenient D...