From: Matti A. <ma...@ik...> - 2002-12-16 15:42:27
|
Carsten Klapp wrote: > Which one is Joby Walker's config scheme, is that the one with > config-dist.php, config-user.php etc.? I like that system too... (the > configurator & old index.php are so huge now and getting tough to > maintain.) Yes, that's the one. However, I have to take my words back slightly. IMHO the current implementation is not quite there yet. I found out there is *more* work in using the split configuration files at the moment. To know what to edit, one has to read config-dist.php, and copy the relevant parts from that file to config-user.php (and also be able to do basic PHP editing, such as to remove "if (!defined(...)) pieces). Furthermore, there are plenty of associative arrays used in the configuration files, and it may not be obvious to everyone how to override settings from within them. Maybe all user-editable configuration parameters should be simple variables, and the comments should reside in config-user.php. After requiring both of these config-files, there could be a lib/config-parser.php, which would then parse the set configuration for correctness and mangle it to structures more suitable for internal use. Or something... m. |