OO-ask for a PHP face to write the message board, learn to use.

Source: Internet
Author: User
I've never written any logically before, and I've recently read PHP and want to write a message boards.

Most of the web found is PO (face to the process) rules, and some also embedded in a large number of font=12 of the old form of the sentence, see very difficult to.

Now I'm looking for an oo (face -to-eye) rule, looking on GitHub, seemingly not finding anything good, and I can't seem to find what's good right now.

I am now stuck in the concept of PHP, to write a message board, it is necessary to allocate a good config,router on the index, similar to the small MVC framework, and then each message becomes an object, created with class, and then the class has curd method ... is actually blurred.

So I would like to invite you to recommend one, do a reference.

Reply content:

I've never written any logically before, and I've recently read PHP and want to write a message boards.

Most of the web found is PO (face to the process) rules, and some also embedded in a large number of font=12 of the old form of the sentence, see very difficult to.

Now I'm looking for an oo (face -to-eye) rule, looking on GitHub, seemingly not finding anything good, and I can't seem to find what's good right now.

I am now stuck in the concept of PHP, to write a message board, it is necessary to allocate a good config,router on the index, similar to the small MVC framework, and then each message becomes an object, created with class, and then the class has curd method ... is actually blurred.

So I would like to invite you to recommend one, do a reference.

I think what you need is MVC. Oo is just a means of building a website program, not the structure of the website program itself. (In fact, the construction of MVC basically requires OO as the Language Foundation)

To learn MVC, it is not appropriate to open the internal logic of the framework. MVC is more of an idea than a way of realizing it. It is a good idea to use the molded frame to eliminate the distractions of the implementation details.

(For example: it is hard to imagine that UNIX system calls are unfamiliar, read the Linux source.) This is a meaning. )

Believe me, wait until the idea of the MVC framework is in the heart, and then write things independently, how to write how to go to the direction of MVC.

In addition, I used to be one of the defenders of the red and white machine fan station fchome(about 2003-2010). If you do the red and white machine related sites, I would like to communicate more. Welcome to contact us.

  • Related Article

    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.