Housing multiple classes under one class

From: Date: Sat, 20 Sep 2003 18:09:07 +0000
Subject: Housing multiple classes under one class
Groups: php.general 
Request: Send a blank email to php-general+get-163300@lists.php.net to get a copy of this message
I got an application that uses Smarty, ADODB, and some other custom classes. So I have about about 5 objects floating around, and the Smarty object, and another class contains a reference copy of the ADODB object, and I just get that feeling that it can be better. By having one class where they all can share each others data. Is it just a dream? The only way I know how is by making object/objects like $foo->bar->do_something() But that may lead to passing an object to a class, and Ill end up with multiple copies of an object Any insight or examples would be appreciated. Thanks

« previous php.general (#163300) next »