Re: class packages

From: Date: Wed, 08 Sep 2004 14:54:38 +0000
Subject: Re: class packages
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-196128@lists.php.net to get a copy of this message
> > It seems the following is the best option: > > include('classes/help/Search.inc'); > > > > // Inside Search.inc and in the same "package" > > include('OtherClass.inc'); > > include('AnotherClass.inc'); > > > > Is there a better way? I do pretty much the same thing but with a config.php file. I have in my directory structure a configuration file that will override the current config file settings when the contents changes depending on the requirements of the directory. So in my directory that processes email I have a config.php file that will include the class files necessary for the email functionality. In the admin section I have a config.php file that includes the admin authorization, editing and insertion, and modification class files. I don't know if it's a right way or wrong way.., it just seemed to make sense to do it like that. alex hogan

« previous php.general (#196128) next »