From: Steve W. <sw...@pa...> - 2001-06-08 17:09:24
|
This is something that's been on my mind since Jeff moved all the config into index.php and all the main functionality into main.php. I think this is the old argument about where does main() go: at the top, in the first file, or at the bottom after you've declared everything? I miss having index.php contain all the main functionality (the program flow) and all config info off in a config file. Sergio is following a standard practice of putting config info in etc/, and that's admirable. I would argue that PhpWiki is small enough that it's not necessary, but it couldn't hurt to have lib, etc, var or whatever is needed. An etc/ could hold a config file and a style sheet. ~swain On Fri, 8 Jun 2001, Sergio A. Kessler wrote: > ----- Original Message ----- > From: "Jeff Dairiki" <da...@da...> > > > > >putting the code where my mouth is, this patch create > > >a etc/* directory to put cfg there, so cleaning up index.php > > > > > >comments ? > > > > All you've done is split index.php into four separate files. > > What does this buy you? > > some cleanup, IMO having the cfg in index.php, and even worse > when you put all cfg in there, all togheter... > > well, maybe is my coding style, I prefer to have ten files > which do ten differents things, and not one file that does > ten differents things... > > /sergio > > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phpwiki-talk > --- http://www.panix.com/~swain/ "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." -- Frank Zappa |