From: jason <ja...@gr...> - 2001-08-20 22:23:56
|
i thought i'd be the first to report that the Query_Example no longer works after this last CVS sync. Warning: Supplied argument is not a valid MySQL result resource in /home/jason/r2/binarycloud/build/en/ext/metabase/metabase_mysql.php on line 166 on a side note, i wanted to ask for a recommendation as to how to implement a simple application under BC in regards to how to handle a single module that uses multiple classes/libraries. for example, i've got a forum application underway with the following structure. build/en/user/mod/forum/lib/Forum.php <- the required library (included by the other files) build/en/user/mod/forum/ForumIndex.php <- forum listing, default page. build/en/user/mod/forum/ForumList.php <- lists the messages in a forum build/en/user/mod/forum/ForumRead.php <- displays a thread build/en/user/mod/forum/ForumPost.php <- to post a thread/reply now, these classes each contain a constructor, and Output() method. so far so good, no troubles... as for the document root side, i have a question as to handle this. i know either way will work, but i'm wanting to stay as conforming as possible while BC is still under development. should i have this...: build/en/htdocs/forum/index.php <- builds/imports build/en/htdocs/forum/list.php <- builds/imports ForumList.php build/en/htdocs/forum/read.php <- builds/imports ForumRead.php . . etc. which is working fine, although all the gPageDef is redundant. OR this...: build/en/htdocs/forum/index.php <- a switch looking for $mode which builds/imports the desired module such as ForumIndex.php,ForumList.php, etc... this seems like a trivial question to ask, but i'm not exactly sure how module distribution is to be handled in the future. i hope this is clear enough for a response. jason Alex Black wrote: > Sync to sourceforge is done, you can update your checkouts :) |