|
@ -66,6 +66,7 @@ class AttributeController extends Controller |
|
|
public function actionCreate() |
|
|
public function actionCreate() |
|
|
{ |
|
|
{ |
|
|
$model = new Attribute(); |
|
|
$model = new Attribute(); |
|
|
|
|
|
$model->sort_order = 0; |
|
|
|
|
|
|
|
|
if ($model->load(Yii::$app->request->post()) && $model->save()) { |
|
|
if ($model->load(Yii::$app->request->post()) && $model->save()) { |
|
|
return $this->redirect('index'); |
|
|
return $this->redirect('index'); |
|
|