|
From: Gerry K. <ge...@mc...> - 2001-08-21 06:10:01
|
Thanks for your comments, Alex - some questions below. Gerry At 09:14 AM 14/08/01 -0700, you wrote: > > > > One example of how this system would be used is for the Agriculture > > program. They work with thousands of farmers. Each farmer will have a > > profile containing family, health, economic data. Each year, information > > will be entered on projects to improve the farmer's health and economic > > situation, e.g., growing a high-yield rice crop. > >Cool, and without even knowing more I can tell you that R2 with >EntityManager will save you untold amounts of time :) Can you give me an example? >for example, you could build a single module that was responsible for >presenting 'farmer info' under different circumstances: a list of farmers, >or a farmer detail, or a form for editing a farmer's information. - all in >one module, which would accept a paramter for the 'mode' to use. From the documentation, a module is a class that has an Init() and an Output() method. So, in your example, a 'mode' parameter would be passed to Init() telling it what type of data I want to display. Init would query the db using EntityManager to get the desired data. Output() might then use some template from TemplateManager to build the presentation and output that as a bunch of HTML. Am I on the right track? >tools like these don't exist anywhere else in the php community. It all sounds good, it's just that I'm still confused as to the steps I would take to build an application using bc, from start to finish. It seems I have to create an XML database definition, create some modules with app logic, create some page definitions to build HTML content to display to the user, and then do something with EntityManager and QueryManager to manage database interactivity. Where does UI Manager fit in? >best, > >_alex |