| Posted by Rik on 01/30/07 12:07 
Curtis <zer0dyer@verizon.net> wrote:
 > On Mon, 29 Jan 2007 23:52:49 -0800, Willem Bogaerts
 > <w.bogaerts@kratz.maardanzonderditstuk.nl> wrote:
 >
 >>> I have the following class structure and I'm wonder how best to put
 >>> this
 >>>
 >>> in seperate files/folders instead of all in one file. Thanks!
 >>
 >> It does not really matter if you put each class in its own file or if
 >> you group them in library files. It is just a matter of personal taste.
 >>
 >> What I really avoid is mixing "free running" code with class or function
 >> definitions. A file should either define something or run something. Not
 >> both.
 >>
 >
 > That's a good point you make there.
 >
 > It might be fine to keep all the sub classes in one file, if they're
 > small enough. Usually, it'd be better to minimize the amount of require
 > and/or include constructs used.
 
 When on PHP5:
 http://nl2.php.net/manual/en/language.oop5.autoload.php
 --
 Rik Wasmus
 [Back to original message] |