What are the pros and cons of the PHP framework's single-entry and multi-entry?
Reply content:
What are the pros and cons of the PHP framework's single-entry and multi-entry?
The advantages of a single entry are easy to control, such as what you need to do in the program flow, just look for this entry.
If it is multi-entry, the amount of work to be modified and tested will increase exponentially.
Moreover PHP4 already fast, now PHP5 even PHP6 speed faster, fast to already do not have to mind the execution speed of the program, so the single entrance completely can meet a variety of applications, do not need to do double entrance or multiple entrance.
Since speaking of this problem, then I also say my opinion, first of all domestic programmers by the domestic open-source CMS and open source framework of the impact of thinking bad change, I understand the single entrance is the front desk is an entrance, then good backstage, if also use this entrance is bound to your controller will be more chaotic, So I suggest or more entrance bar, the above remarks are based on the so-called MVC, process-oriented please actively ignore!