PHP developers should be familiar with the five concepts _php tutorial

Source: Internet
Author: User
There is a difference between the knowledge and the actual programming in the textbook of grammatical structure, and the real knowledge is obtained in the actual development. Each PHP developer should be familiar with the following five things before starting to develop a Web application:

1. 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 you develop quickly and maintain greater consistency and effectiveness. Some of the better frameworks include CakePHP, Symfony and CodeIgniter. Many frameworks also follow the MVC design pattern, and if you work in this mode, you'll be familiar with it. After a while, you can even create a framework based on your needs.

2. Template engine

If you are not using a framework to perform a specific design pattern, then you want to use a template engine. Whether you create it yourself or use an existing template (such as Smarty), the template engine will make your logic code separate from the HTML page (and related CSS/JS/etc.). This greatly simplifies your code, makes the whole program quick and easy to modify, and makes it easier for non-developers to modify your program.

3. Code Reuse

As I did before, PHP is the best code reuse in the language in use. From small to medium-sized documents to the entire database class, PHP developers are free 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

The obvious thing is that only a handful of PHP developers know that PHP itself has a lot of usability. Forget about 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, browse, and you'll be sure to find something.

5. IRC is a pleasant thing to do

When you have a complex problem that cannot be solved, you can go to IRC. PHP unofficial support channel, a lot of experienced developers intoxicated among them. You need an IRC client, if you use the Firefox,chatzilla is a good plugin, when you need help, to irc://irc.freenode.net/php as the head paste your code. Post your questions and wait patiently; some enthusiastic person (or more) will give you the answer. When you get the answer, consider other questions that need help. For PHP's vast library of functions, no one is a great authority; on IRC, pooling all of the knowledge can solve any problem.

http://www.bkjia.com/PHPjc/364063.html www.bkjia.com true http://www.bkjia.com/PHPjc/364063.html techarticle There is a difference between the knowledge and the actual programming in the textbook of grammatical structure, and the real knowledge is obtained in the actual development. Every PHP developer before starting to develop a Web application ...

  • 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.