Re: [phpslash-users] Development question
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2006-01-28 05:04:41
|
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 > |