On Wed, Feb 18, 2009 at 1:20 PM, Henry <[email protected]> wrote:

>
> - I remove the relationship between Site and Menu in the OO level.
> Site no longer has a reference to Menu, so Site doesn't have to have
> those one-liner delegated methods of Menu (e.g. add/sort/reorder/
> delete).


As I said before, it doesn't have to be one or the other. If "a Site has a
Menu" is a valid statement, then Site can have a reference to Menu
internally if that makes sense for what Site has to do. It wouldn't stop you
from also having a MenuService to allow external code to interact with the
menu without having to go through Site. Since we still don't have a use
case, you'll have to make that decision.


> - The View layer (.cfm) calls MenuService to get a Menu to works on
> managing Links.  Once done, it'll call MenuService.saveMenu(menu).
>
>
I think that I don't see an MVC structure here. Do you really want the views
talking directly to the model to do this? I'd consider a controller.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to