Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- simple object assocition
July 16, 2004, 7:03 pm
rate this thread
Re: simple object assocition
On 16 Jul 2004 14:03:06 -0700, firstname.lastname@example.org (Radim B) wrote:
I nearly always use a mediator:
$instance = new obj();
You can access this in any (class) function with
$obj =& mediator::obj_instance();
In this version all $obj would use the same object, but you can
control that from within the mediator.
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.