From: Alex B. <en...@tu...> - 2001-08-30 19:40:16
|
> Ok, I'm making some progress using bc. Thanks for the suggestions on getting > started. I have some more questions: > > 1. What is the process to set up a database? My understanding is the database > is > created using Metabase and a schema.xml file. Where is the code that does the > actual database creation? Do I have to build that? hi Gerry, it exists in r2 (the module 'db') but doesn't currently in r2, though the code would be quite similar. I suggest you download the r1 tarball and have a look in user/mod/db. > 2. Authorization uses a bc table to check user's credentials. How does this > table > get created? That version of auth is a placeholder from R1. You're welcome to get it functional if you'd like but it's far more simplistic than what we have planned. The table is created in the same way the database is, with a metabase schema file. > 3. Let's say I want to create an admin page to maintain tables in a database. > The > admin page is set up in a grid, with each cell containing the markup to > maintain > one table. I did this before by using one PHP page that posts to itself, > checking > to see what submit button is pressed. Based on that, a record may get added, > deleted, or modified. > > Using bc, how might this be implemented, in terms of modules, layouts and > templates? That would be a single module, a master template isn't necessary for that to work but would be nice if you'd like to have a banner/nav/etc. > 4. I am a little confused about the difference between a layout and a > template. A layout is a template. Here's the deal: -Master templates are the top-level templates for the page types of a site. For example, a master template might contain navigation, a logo, a footer, etc. and markers that tell pahe where to echo module group output. -A Layout template is used to 'layout' modules within a module group. You probably won't use these that often, but when you need them you'll love them. Say you have a module that echos a table, and another that echos some text from a database field - now say you wanted to put... an image in-between them on the page. But you don't want to add that image to either module, and it would be stupid to create a module just to get an image tag in-between these two modules: create a layout. that make more sense? :) _a > TIA, > Gerry > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > |