|
|
@ -52,8 +52,9 @@ class ShopCategorySearch extends ShopCategory |
|
|
|
'width' => '2%', |
|
|
|
'align' => 'center' |
|
|
|
], |
|
|
|
'id', |
|
|
|
'name', |
|
|
|
'id', |
|
|
|
'name', |
|
|
|
'sort_order', |
|
|
|
[ |
|
|
|
'class' => 'iron\grid\ActionColumn', |
|
|
|
'align' => 'center', |
|
|
@ -86,7 +87,8 @@ class ShopCategorySearch extends ShopCategory |
|
|
|
*/ |
|
|
|
public function search($params) |
|
|
|
{ |
|
|
|
$query = ShopCategory::find(); |
|
|
|
$query = ShopCategory::find() |
|
|
|
->where(['is_delete' => ShopCategory::IS_DELETE_NO]); |
|
|
|
|
|
|
|
// add conditions that should always apply here
|
|
|
|
|
|
|
|