php - Question about MVC folder structure -


To use the MVC pattern / layout structure, is it basically loading everything through 1 file? Is your index file like this?

No MVC patterns should only be different from events related to event / request handling, data modeling and user interfaces. Gives suggestions. The way to implement it is not specified.

Many of the existing PHP frameworks (all?) I know about do know that a single entry point (index.php) and use the route from there. It often uses the "front controller" pattern.

The second method (using a different PHP file per page) is known as the page controller pattern, it has the advantage of being very easy, but the application provided by the front controller will lose extensive control And can be prone to code duplication.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -