我有下面的代码:问题与PHP OOP
class the_class {
private the_field;
function the_class() {
the_field = new other_class(); //has other_method()
}
function method() {
$this->the_field->other_method(); //This doesn't seem to work
}
}
这有什么错在这里的语法?方法调用似乎总是返回true,就好像方法调用有问题一样。 或者是方法调用所有权利,我应该调试other_method()本身?
TIA,彼得
非常感谢你。完成了! 我是盲人,呃? ;-)对不起。 – 2010-07-21 11:42:39
你仍然可能想接受已花时间回复的人的回答。 – 2010-07-21 16:02:31