关于model里面的after的调用,能不能像我这样使用

浏览:399 发布日期:2015/12/04 分类:求助交流
//查询用户权限
public function getRules($uid,$field){
$where['user_id'] = $uid;
$str = $this->where($where)->getField($field);
return $str;
}
protected function _after_getRules(&$str,$options){
if(!empty($str)){
$str = explode(',', $str);
}
}
最佳答案
评论() 相关
后面还有条评论,点击查看>>