The following tutorial column will introduce to you how to solve the error report when tp5 encounters Call to a member function toArray() on array. I hope it will be helpful to friends who need it. !
When corrected,// 数据集返回类型 'resultset_type' => 'array',
// 数据集返回类型 'resultset_type' => 'collection', 这样就可以啦
The above is the detailed content of Solve the error when tp5 encounters Call to a member function toArray() on array. For more information, please follow other related articles on the PHP Chinese website!