The knowledge in grammar structure textbooks is different from that in actual programming. Real knowledge must be obtained in actual development. Every php developer should be familiar with the following four things before developing a web application: 1. The framework is the most important issue in php development. There are many ways to develop web applications using php.
The knowledge in grammar structure textbooks is different from that in actual programming. Real knowledge must be obtained in actual development. Every php developer should be familiar with the following four things before developing a web application: 1. The framework is the most important issue in php development. There are many ways to develop web applications using php.
The knowledge in grammar structure textbooks is different from that in actual programming. Real knowledge must be obtained in actual development. Every php developer should be familiar with the following four things before developing a web application:
1. Framework
The framework is one of the most important issues in php development. There are many ways to develop web applications using php. There are many open-source frameworks that can be used to help rapid development and maintain higher consistency and effectiveness. The better frameworks include cakephp, Symfony, and CodeIgniter. Many frameworks also follow the MVC design pattern. If you have worked in this pattern, you will be familiar with it. After a while, you can even create a framework based on your own needs.
2. template engine
If you are not using a framework to execute a specific design pattern, you want to use the template engine. Whether you create or use an existing template (such as Smarty) by yourself, the template engine will make your logic code independent from the HTML page (and related CSS/js ). This greatly simplifies your code, makes modifications to the entire program fast and simple, and makes it easier for non-developers to modify your program.
3. code reuse
As I mentioned before, php is the best language for code reuse. From many small and medium documents to the entire database class, php developers can freely choose to reuse existing code when needed. In fact, you can build the entire application without writing a line of code.
4. Do not re-start to find some items
Obviously, only a few php developers know that php has many advantages. Forget the new library or complex code routines-first look at the PHP manual. For example, have you ever heard of number_format (), parse_url (), wordwrap (), or bbcode_parse ()? Take a look at the entire function reference, select a category, and you will surely find something.
(To) http://www.php100.com/html/webkaifa/PHP/PHP/2012/1122/11628.html
Original article address: the four concepts of PHP should be PHPer. Thank you for sharing them with me.