PHP framework, how to resolve

Source: Internet
Author: User
PHP Framework
Recently on the Internet to learn the Zend Framework, although can follow the above tutorial to set out the example, but after learning does not know how to use.
Why use frames? What improves efficiency, easy maintenance is not felt.
------to solve the idea----------------------
Improve efficiency, easy to maintain is familiar with the use of the premise of the withdrawal, the first use of the framework can go to see CI
------to solve the idea----------------------
The framework is used for group cooperation, and everyone is doing things according to uniform methods/rules.
------to solve the idea----------------------
The use of the framework is based on people's thinking, but not the use of the framework when you can do
Frameworks are divided into development frameworks (Zend Farmewode, thinkphp, Yii ...). )
and application Framework (Dede, Phpcms, WordPress .... )

MVC is an architectural pattern that is suitable for simple applications
Three-tier architecture for complex and rigorous applications

Due to the popularity of the API, almost discarded three-layer architecture is rejuvenated by the youth.
------to solve the idea----------------------
PHP This thing is good to write, but difficult to write well. You don't see the benefits of framing. It's because you haven't written enough, even if you don't have any frames, one day you can't stand the code that sticks together. You will also organize your code modules and hierarchies in your own way, which can also be a framework.
Of course, the rules-------------------the framework is governed by the frameworks, which are the benefits of enjoying the framework under limited circumstances.
The frame package level is different, some light, some packaging degree is almost the Java world.

Maybe you will be more dizzy frame that is tossing what, such as moderator mentioned above the MVC layer three, in fact, MVC is not a patent for web development, such as the VC MFC, and iOS cocoa are all MVC (https://developer.apple.com/library/ ios/documentation/general/conceptual/devpedia-cocoacore/mvc.html).

It is also suggested that you fill in the knowledge of OO, not just the grammar related to class, oo itself is a methodology that abstracts reasonable classes and organizes them appropriately after a clear analysis of requirements. The best practice for organizing a fixed class is the design pattern. For example, why so many abstract classes, interfaces to you to inherit or implement. Why there is a single entry for class routing.

Remember the book on the market <深入php:面向对象、模式与实践> In-depth PHP: Object-oriented, pattern, and practice involves some, not to say how good the book is. Because the book is still more Java and C + +.

------The idea----------------------the
frame is different from the Bookshelf
the books on the bookshelf can be stacked arbitrarily, and if you need to arrange them in order, you need the administrator to plan the

Framework as if it were a building drawing. According to the plan after the construction only need to intervene in the decoration of the thing
but according to Villa drawings is not built shopping malls

------Solutions----------------------
I am also learning ZF2, but also in the study and understanding of MVC, I think the framework can improve the efficiency of development, and the framework has done a lot of functions for us to encapsulate, and it is not that you put the example of ZF2 in the Help document to show that you will. ZF2 inside of the things, I think still a lot of, to learn the estimated to spend a long time.
  • 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.