From: Andrew T. <ajt...@hi...> - 2006-04-30 15:52:57
|
Evan, I'm glad you agree that pulling in an existing framework is overkill for us. Especially at this point with FoFRedux which has all of its functionality already in place, it just needs to be "refactored" I think it would be best to have 1 person architect the new FoFR framework, with discussion/input from everyone concerned who has input to offer. But I don't want the code to become a tug-of-war between developers. Perhaps kevin can lay out his current design layout/implementation vector (I just made that word up) My thoughts: The view should be able to make calls like: * Give me the array of feeds for a user * Add this feed for a user * Give me items which match * criteria * Add this search, pull up by search etc. - the view just makes high-level requests and then gets back an array that it can pull apart and display while iterating through each row. Here is some rough pseudo-code "view_framework.php" display_item(item_row) { /* return HTML */ } display_feed_row(feed_row) { /* return HTML */ } view.php <? display_menu('view'); ?> <? items =3D get_items_for_view(params); ?> <? for items { display_item(item))} ?> Then the controller would be responsible for the "get_items_for_view" functions and so on which would then query the db, build up a nice array, and return it to the view What do you think? Andrew |