@ -66,6 +66,7 @@ class AttributeController extends Controller
public function actionCreate()
{
$model = new Attribute();
$model->sort_order = 0;
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect('index');
@ -55,6 +55,7 @@ class AttributeSearch extends Attribute
'id',
'name',
'value',
'sort_order',
[
'class' => 'iron\grid\ActionColumn',
'align' => 'center',