object(Closure) 数组的用法
[$where, $sort, $order, $offset, $limit] = $this->buildparams();
$fnc = new ReflectionFunction($where);
$map = $fnc->getStaticVariables();
var_dump($map['where']);
在当前控制器使用$this->model->where()->find()
/**
* @var \app\admin\model\User
*/
protected $model = null;
public function _initialize()
{
parent::_initialize();
$this->model = model( 'app\admin\model\User');
}
评论区