Re: HELP ! ! ! something simple . . . :D




CorfuVBProgrammer a écrit :

New Question

if i like to use the instance from other method into the class how can
i do that ? ? ?

example:

class class_a
{
public function method_a()
{

}
}

class class_b
{
private $objInstance;

public function __construct()
{
$this->objInstance = new class_a();
}

public function method_t()
{
how to use the $objInstance methods into this method ? ? ?
}
}



thanks a lot

You can use objInstance methods like that :
class class_b
{
private $objInstance;

public function __construct()
{
$this->objInstance = new class_a();
}

public function method_t()
{
$this->objInstance->method();
}
}

.



Relevant Pages