views:

3225

answers:

7

Hi,

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.

+1  A: 

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.

jsmith
thanks - thats a really good tip!
Stephen
+1  A: 

Hi, 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

+2  A: 

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.

rick
+1  A: 

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.

Skamander
A: 

I wrote an HMVC framework in PHP called Alloy:

http://alloyframework.org/

It's pretty lightweight and has a modular structure.

Vance Lucas
A: 

@Skamander: the english language community is quite small at the moment, but the german is not. If you want to try out the APF feel free to post any question within the english or german language forum. I'm sure you'll get a satisfying answer.

Christian Achatz