Does the website generally use single entrance?

Source: Internet
Author: User
Tags php framework
I found a lot of PHP framework is a single entrance, but basically I have seen the open source system like Discuz, Zencart, Destoon, etc. are not single-entry, ask the general company to write the project is a single entrance?

Reply content:

I found a lot of PHP framework is a single entrance, but basically I have seen the open source system like Discuz, Zencart, Destoon, etc. are not single-entry, ask the general company to write the project is a single entrance?

Single entry enables pseudo-static, facilitates process control, and enables more complex architecture

As a veteran like Discuz in the past development of the process of PHP has not mature architecture and object-oriented thinking, so there is no embodiment of this.

老一代的开源系统都是采用那个年代成熟的也是php的强项的面向过程的开发模式,那个时候的程序员都是那样写项目的。一个项目成熟后,再改架构是代价很大的,所以他们一直沿用了。如果你有了解一些新兴的开源代码,就会发现采用了你说的单入口,比如prestashop这个开源商城,可以比较方便的做请求校验之类

Can think of a Web site as a small country, a single entrance, the equivalent of the head of the country, the number of entrances to the equivalent of no Fuhrer, the state of the Fuhrer, the programmer (God) need to do something directly to tell this head of the head can be, for the multi-head (equivalent to No Fuhrer), obviously efficiency is not so high In fact, the single entrance is also a multi-entrance, nothing more than the basis of these multiple entrances and abstracted out a single entrance just. These multiple portals can be understood as multiple classes, and the single entry is their parent class.

Not conducive to SEO, the general site will not be used.

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