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