|
|||
|
OK...I have an existing php webapp called HistCosmos -- History of the World.
HistCosmos queries a MySQL database of 720+ Historical events of 30 different types (so far). This app is my site's most popular feature, so i want to continue to improve it. In it's current state nearly everything is on one PHP/HTML page, and updating the code is already starting to become annoying. I want to use this app as a test of the Zend Frameworks. If all goes well, I'm going to create another app with ZF. At this point in development I'm engaged in two operations: 1) looking for a more sophisticated set of form elements/controls. I've reviewed ExtJS and qooxdoo, and am experimenting with Backbase Community Edition. If you have any suggestions, please let me know. 2) adapting the current app to the MVC paradigm. At this point I need some feedback on my new design; I welcome any and all criticism...I want to make sure my design is sound before I start coding. *******************Start - HistCosmos MVC Design******************* Web App: Dot Net History Purpose: to present a Bible-centered view of history Pattern: Model-View-Controller (MVC) Framework: Zend Framework (ZF) MODELS (Model Platform: MySQL): EVENT (BibleYear, Gregorian Year, Event Type, Event Location, Event Description, Source Link[http]) SUGGESTED_EVENT (same columns as History Event; users can suggest additions, which are added to a clone of the main db and moved to it with admin approval) USER (for security/ACL, and only for admin tasks) VIEWS: EVENTS (All by default) SEARCH (Results) SUGGESTIONS (data entry on clone db) ADMIN (Login, Edit/Delete[main db], Approve Suggestions[Move from clone db to main db]) CONTROLLERS::ACTIONS: IndexController( IndexController::indexAction[All Records] IndexController::searchAction[show search all search results] ) SuggestController( SuggestController::indexAction[Add a suggested event] SuggestController::verifyAction[Suggestion was added to clone db] ) AdminController( AdminController::indexAction[Login] AdminController::editAction[Edit entries in main db] AdminController::deleteAction[Delete entries from main db] AdminController::approveAction[View Suggestions and Move approvals from clone db to main db] ) ErrorController( ErrorController::indexAction (errorAction[?]) ErrorController::errViewAction[Handle errors on View of All Records] ErrorController::errSearchAction ErrorController::errSuggestAction ErrorController::errAdminLoginAction ErrorController::errAdminEditAction ErrorController::errAdminDelAction ErrorController::errAdminApproveAction ) DIRECTORY STRUCTURE: Code:
/HistCosmos /app /config config.ini /controllers IndexController.php SuggestController.php AdminController.php ErrorController.php /models Event.php Suggest.php User.php(?) /views /filters /helpers /scripts footer.phtml header.phtml /index index.phtml search.phtml /suggest index.phtml verify.phtml /admin index.phtml edit.phtml delete.phtml approve.phtml /error index.phtml .htaccess /lib /Zend /public /images /scripts /styles HistCosmos.css .htaccess /tmp .htaccess Last edited by Quasaur : 08-20-2007 at 09:20 AM. Reason: Create index action for each controller dir |
![]() |
| Thread Tools | |
| Display Modes | |
|
|