From: Jeff D. <da...@da...> - 2002-09-14 19:10:46
|
Hey, I'd like to move the configuration data out of index.php (again). (The little auto-decide if we really wanted to fire up main or not code at the bottom of the current index.php is problematic...) Having the config information in index.php was clever when we only had one script using the info, but now it's just a pain, and causing uneeded complexity... My current thinking is that index.php should look like: <?php include('config/config.php') include('lib/main.php') main(); ?> (Also, I think we should ensure that including lib files doesn't actually _do_ anything beyond defining things (i.e. classes, defines, functions, or variables). One should have to call a function before anything happens.) Any objections or other comments? |