[Phpslash-devel] RFC: more modular "modules"
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-03-07 15:38:43
|
Note: starting this discussion again on the -devel list. No holding still I guess. I've been think about fleshing out a spec for phpSlash modules, including moving around the directory structure some. I'm sure you won't be too surprised that all the compartmenting of code, ensuring return of output to variable instead of "echo", and the AddClassRequirements/pslNew stuff is paying off here. I wanted to get your opinions before beginning a RFC document and spec. 1. Change directory structure (hopefully formatting is clear enough): phpslash-ft- - contrib - include - - class - locale - modules - - story - block - - blocktypes - glossary - submission - mailinglist - etc. - templates - - en - - basic - basiccurves - default - scripts - doc - public_html - - admin - images - styles - tables By moving to an include directory this further simplifies configuration and makes moving the templates and admin scripts out of the web root easier. 3. The module's directoy would contain the class files as well as the public script and admin script as applicable. 4. The configuration changes may include: dir.include variable module.current variable changing the modules array to point to the module to use ( instead of "true"). thanks, Joe |