Question

I'm interested in the Presentation-Abstraction-Control? (aka Hierarchical-Model-View-Controller (HMVC)) Architectural Pattern for constructing complex user interfaces (GUI or web) and was wondering if anyone was aware of any examples in the wild where I could read the code?

I'm aware of the JavaWorld article and associated letters cited in the Presentation-Abstraction-Control wikipedia article.

Was it helpful?

Solution

In the php world, I'm aware of a few methods that might qualify as HMVC. They all allow calling a controller and displaying the results from within a view. The calls can be nested infinitly creating widgets within widgets.

OTHER TIPS

I wrote an HMVC framework a while back for J2EE and FreeMarker:

http://www.neocoders.com/portal/projects/jandal

and recently another one for Javascript:

http://www.neocoders.com/portal/projects/subo

These are fairly 'experimental', but might be of some academic use.

cheers, Lindsay

It's my understanding that the Cairngorm framework for Adobe Flex is just one example of an HMVC implementation. It's open source, so you can find out more information and download the code at Adobe's website.

The APF-Webframework - http://adventure-php-framework.org/Page/001-Home - uses HMVC since many years, and has a very experienced and engaged developer. Only the small community discourages a little bit.

I wrote an HMVC framework in PHP called Alloy:

http://alloyframework.org/

It's pretty lightweight and has a modular structure.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top