What’s the basic differance between MVC and HMVC ?
September 25, 2011 Leave a Comment
MVC only has 1 controller per request, HMVC can have many.
MVC request processing:
1. bootstrap, determine uri
2. route and load controller
3. display output
HMVC request:
1. bootstrap, determine uri
2. route and load main controller
2a). create request, route, load controller
2b). create request, route, load controller
...
3. display output
Basically, at any point within an HMVC framework, you can do something like this:
Each request is entirely self-contained, as if someone went to (for users/login) http://example.com/users/login. It’s very similar to AJAX, except that all of the requests happen within the main request.