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.