Alci
|
 |
« on: January 20, 2010, 03:31:28 » |
|
I am new to PureMVC, and the current site I am building is the first one will be built with PureMVC. It's with several sections, and each section has some elements, some of them are similar, like all sections will have main menu, but the menu on the home page will be different from the inside pages, and there are two sections have product detail box, but one of them are verticle, another is horizontal.
My questions: 1. Should I use mediator or command for sections? I thought I can build mediator for each elements, like menu or product detail box, then use command to load them together into the stageMedaitor. But it's also possible to use one mediator for each section. Which method should I choose?
2. If I use mediator for different sections, should I build one for each, or should I use one mediator for all sections? For example, should i build HomePageMediator/ProductPageMediator/ContactUsMediator or should i just build sectionMediator then writing code inside to load other different mediators?
Thanks a lot for the help from you guys.
|