Welcome Guest, Not a member yet? Register   Sign In
Am I understanding HMVC correctly?
#1

[eluser]kimp[/eluser]
I'm working toward a complex application and I think that eventually I'll need HMVC, but not sure.

In essence, I have many views where there will be several sub-views, each with their own logic and functionality. In fact, each of the sub-views is equivalent to a separate controller function.

The best example is where an Admin selects a user from a list, and goes on to edit that user. I currently have two controller functions: one for listing users, one for editing the chosen user. If I want to put these on the same page, however, I think I need to use HMVC. Is that right?

At first I thought it was simply a matter of one sub-view using ajax to requery the second sub-view, but now I realise that the sub-views are more than just 'views', they are actually controller functions.

Not sure if this makes sense, but any clarification would be appreciated!


Messages In This Thread
Am I understanding HMVC correctly? - by El Forum - 11-29-2010, 07:17 PM
Am I understanding HMVC correctly? - by El Forum - 11-29-2010, 08:03 PM
Am I understanding HMVC correctly? - by El Forum - 11-29-2010, 09:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB