public function actionCreate()
 {
     $model = new Equipment();
     if ($model->load(Yii::$app->request->post())) {
         $count = Equipment::find()->count();
         $model->binary_pos = ++$count;
         $model->save();
         return $this->redirect(['index']);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }
 public function actionVar1step2()
 {
     $dataProvider = new ActiveDataProvider(['query' => Equipment::find()]);
     return $this->render('var1step2', ['dataProvider' => $dataProvider]);
 }
 /**
  * Lists all Equipment models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => Equipment::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }