Hi,
I'm making an MVC pattern based app and I though I would learn the principles first. I have reached a stage I need to connect the three elements. When Controller receives user action It calls right model. Now I need to register callback function so that when Model is done it will update view using that callback. Now I'm struggling in doing this and I need to make generic class that will handle all Model registration. Where do I begin to write such a class?
Sorry if something is unclear. Just point it out and I will make it clear.
Thanks!
Stefano Mtangoo
455
Senior Poster
Recommended Answers
Jump to Post>> Now I need to register callback function so that when Model is done it will update view using that callback.
You have stumbled upon the reason why I don't like MVC very much. The "idea" of MVC is that the Model should be only a slave to the …
All 4 Replies
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Stefano Mtangoo
455
Senior Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Stefano Mtangoo
455
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.