PDA

View Full Version : PHPObject, objects within objects?


Wuher
07-28-2005, 04:50 AM
Hi guys,

I've built a php site already, but would like to add a flash component to it using the already established (or maybe slightly altered) php classes. The problem I'm finding is when I try to initialize an object that has another object within it. Example:


class Test0 {

function Test0() {
//code
}

}

class Test1 {

function Test1() {
$this->obj= new Test0();
}

}


Now, when I try to create the object using PHPObject in flash, it results in a Connection Failure error. Everything up to an equivalent "$this->obj= new Test0();" line in my classes works fine. So I know its this object within an object idea. It seems like its trying to connect to the Gatway.php file again once it hits the nested Object. Does anyone know if this is possible in PHPObject? Any suggestions about how to work around it?

Thanks.