Yii2: How to get attributes of $this?

后端 未结 0 1751
逝去的感伤
逝去的感伤 2021-02-02 04:51

I have a Model class A and a subclass B.

class A extends \\yii\\base\\Model {
    public $a1,$a2;
}

class B extends A {
    public $b1,$b2;
}

$o = new B();


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题