要想属性可搜索,需要在在Model的rules 设定可以搜索的属性
public function rules() | public function rules()
{
return [
[[‘id‘, ‘date‘, ‘type‘, ‘blocked_time‘, ‘create_time‘],
‘integer‘],
];
}
时间: 2024-10-27 06:35:43
要想属性可搜索,需要在在Model的rules 设定可以搜索的属性
public function rules() | public function rules()
{
return [
[[‘id‘, ‘date‘, ‘type‘, ‘blocked_time‘, ‘create_time‘],
‘integer‘],
];
}