YII2中自己写的自定义函数怎么调用

2025-05-22 11:10:23
推荐回答(1个)
回答1:

controller内写的方法controller调用用$this->方法名
yiibase类里写的方法 用Yii::方法名 调用