Re: Development question
Joe Stewart <[email protected]> Fri, 27 Jan 2006 23:03:45 -0600
| Newsgroups | gmane.comp.cms.phpslash.user |
|---|---|
| Message-ID | <[email protected]> |
Brian Toovey wrote: > Hello list, > > I am interested in using phpwebsite in developing a cms to handle > vulnerability information. I need some guidance on some terminology and > best methods. > > I want to use the "story" module as the base of a new module to handle > data stored in mysql of a different schema. So I was wondering: > > 1) Whats the best method for creating a new module with the base being > "story" - or am I looking at the right place to begin? > You *should* be able to extend either the base or Story class. Except for the schema differences. The Story_base.class has the sql queries in each method. So probably of no use to use other tables. > 2) Most of the SQL querries for stories appears to be in > "include/modules/story/ - is the index.php the main include for any module? > yes. The index.php is the public include file and admin.php for private. > 3) Is their any already existing documentation for creating a module? > Will I need a new "section" as well? > There were some things spread out. I've pulled these links into the wiki. Hopefully they will clarify some. Of course they might lead to more questions :) These two posts try to explain some how the modules and blocks work. http://sourceforge.net/mailarchive/message.php?msg_id=7300703 http://sourceforge.net/mailarchive/message.php?msg_id=7300704 This screenshot may confuse more than clarify. But it looks pretty. http://www.php-slash.org/downloads/kcachegrind1.gif Now in these wiki pages: http://www.php-slash.org/modules/wikka/wikka.php?wakka=PageviewNotes http://www.php-slash.org/modules/wikka/wikka.php?wakka=ModuleNotes Joe > Thanks, > Brian Toovey > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642