Jump to content

Hierarchical model–view–controller

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 123.236.197.126 (talk) at 09:40, 17 December 2012 (See also). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
The structure of an application with PAC.

Hierarchical model–view–controller (HMVC) is a software architectural pattern, a variation of Model–view–controller (MVC) similar to Presentation-abstraction-control (PAC), that was published in 2000 in an article[1] in JavaWorld Magazine, the authors apparently unaware[2] of PAC which was published 13 years earlier. The main difference between HMVC and PAC is that HMVC is less strict in that it allows the view and model of each agent to communicate directly, thus bypassing the controller.

The controller has some oversight. The controller selects the model and then selects the view, so there is an approval mechanism by the controller. The model prevents the view from accessing the data source directly.

See also

References

  1. ^ Jason Cai, Ranjit Kapila, and Gaurav Pal (2000). "HMVC: The layered pattern for developing strong client tiers". JavaWorld. Retrieved 2006-05-25. {{cite journal}}: Unknown parameter |month= ignored (help)CS1 maint: multiple names: authors list (link)
  2. ^ "TP" (2000). "Is HMVC PAC? (letter to the editor)". JavaWorld. Archived from the original on 2005-02-05. Retrieved 2006-05-25.