Four concepts of PHP when good phper this job

Source: Internet
Author: User
Tags html page

There is a difference between the knowledge in the grammar structure textbook and the actual program design, and the real knowledge should be obtained in the actual development. Each PHP developer should be familiar with the following four things before starting to develop a Web application:

1. The Framework

The framework can be said to be one of the most important issues in PHP development. There are many ways to develop Web applications in PHP, and there are many open source frameworks that can be used to help develop quickly and maintain greater consistency and effectiveness. Among them the better frame includes cake, symfony and CodeIgniter. Many frameworks also follow the MVC design pattern, and if you've worked in this mode, you'll 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 perform a specific design pattern, then you want to use the template engine. Whether you create or use an existing template (such as Smarty), the template engine will make your logical code independent from the HTML page (and the associated CSS/JS/etc.). This greatly simplifies your code, makes changes to the entire program quick and easy, and makes it easier for non-developers to modify your programs.

3. Code Reuse

As I have stated before, PHP is the best code reuse in the language you use. From small to medium documents to the entire database class, PHP developers can choose to reuse existing code when they need it. In fact, you can build an entire application without writing a single line of code.

4. Do not re-develop existing things

Obviously, only a handful of PHP developers know that PHP itself has a lot of usability. Forget about the new library, or the complex code routines-look at the PHP manual first. For example, have you ever heard of Number_format (), Parse_url (), WordWrap () or Bbcode_parse ()? Look at the entire function reference, select a category, browse, you will find something.



Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.