How to learn a new PHP Framework _php Tutorial

Source: Internet
Author: User
Today's PHP framework is endless, I am not an expert in this area, and even can not skillfully use one of them, so I do not recommend, and do not want to discuss what is a framework which does not count the framework. What I'm going to talk about here is how to get started with a new framework faster.

First of all you must choose a framework, such as Zendframework, Cake, Symfony, ATK, Yii, CodeIgniter, Solar, Prado and so on. Which do you choose? Some frameworks offer very good "step-by-step" introductory tutorials, while others are more difficult to get started with.

I love this article: "The exercise needed to learn a new programming language," but I am already familiar with PHP, so this method is not used in the learning framework. So I'd like to cite some similar exercises for learning PHP frameworks.

If you don't know how to use the frame yet, why not follow the exercises in this article?

1. Hello World (Hello Worlds)

I don't have much to explain the necessity of practicing here. Build an app on a new frame and display "Hello World" on the page. Of course, it won't be that simple.

2. Calculator (Calculator)

Write a simple calculator program, combine the form, subtraction the two operands, and output the results to the page. You need to set a separate action for each operation, or a method (different for each frame), and use the form validation feature in the framework if the framework provides this functionality.

3. Message Board (Guestbook)

Let's go back to 1998-Create a message this program, display a form on the page for the user to fill out, and then submit to the application, and then stored in the database or text file (depending on your own situation), and the content of the user message to the page. If the framework provides functionality such as creating HTML forms, object models, or layers, then use them.

4. Parsing and paging (parse and paginate)

Select an RSS feed or other XML source to parse the entries and display them. Add a paging feature to allow users to browse five five bars and add page numbers at the top or bottom of the page. If the framework provides such a function, use it.

Once you have completed the above exercises, you should be able to clearly know how to use the framework, and use it to do more complex work, or to continue exploring other features of the framework. If you still don't use it, or spend a lot of time doing it, I don't think the framework is right for you, or find something else to use.

Remember, if you're having trouble using the framework, remember to ask for help in the framework's community. A framework with this strong community support will help you a lot in the future, as well as demonstrating that this framework is a good framework. No one wants the framework's developers to announce a halt to development for six months after the use of a framework, which is irritating.


http://www.bkjia.com/PHPjc/446669.html www.bkjia.com true http://www.bkjia.com/PHPjc/446669.html techarticle today's PHP framework is endless, I am not an expert in this area, and even can not skillfully use one of them, so I do not recommend, and do not want to discuss what is the framework of what does not count the framework ...

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