From: alex b. <en...@tu...> - 2001-08-21 07:56:03
|
> >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? Well, you won't have to write nearly as much sql. All of your validation is taken care of for you implicitly by defining entities and using the associated tools (long list) > >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() is deprecated, it's the constructor now. > Init() telling it what type of data I want to display. Init would query the > db using EntityManager to get the desired data. yep > Output() might then use some template from TemplateManager to build the > presentation and output that as a bunch of HTML. yep > 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? It would look something like this: -Define a set of entity definitions in xml -That would automatically build a default set of queries, and DB schema. -Create modules with any logic you need, request or post date through the EntityManager, use the FormBuilder and TableBuilder classes fro modules to create presentation, etc. -Create page defs to embed the modules in pages. So, yes, you are essentially correct. _a |