what do you mean by this :Additionally, you might want to assign the reference of the new objects otherwise PHP will create a new object and then make a copy of it - not very efficient. Like so...
$this->database = & new database(); $this->accessory = & new accessory(); $this->order = & new order();
The = operator makes a copy of the right side and puts it into the left side. So the "new database()" bit will create a new object of type database. The = operator will then make a copy of that object and put it into $this->database. So it's actually creating 2 database objects one of which will get deleted at the end of the function.
By assigning the reference (that's what the & gets) only one object is created. Does that make sense now?
-- Stuart
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php