比如User模型內(nèi)部這樣一個方法怎么獲取到數(shù)據(jù)呢?這樣寫不對嗎?
public static function getuid($value){
return $this->where('username',$value)->find();
}
- 1 回答
- 0 關(guān)注
- 1451 瀏覽
添加回答
舉報
0/150
提交
取消