/**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if (!isset($this->successCreate)) {
         $this->successCreate = Yii::t('app', 'Model has been successfully created.');
     }
     if (!isset($this->errorCreate)) {
         $this->errorCreate = Yii::t('app', 'Model has not been created. Please try again!');
     }
     if (!isset($this->successUpdate)) {
         $this->successUpdate = Yii::t('app', 'Model has been successfully saved.');
     }
     if (!isset($this->successBatchUpdate)) {
         $this->successBatchUpdate = Yii::t('app', '{count} Models have been successfully saved.');
     }
     if (!isset($this->errorUpdate)) {
         $this->errorUpdate = Yii::t('app', 'Model has not been saved. Please try again!');
     }
     if (!isset($this->successDelete)) {
         $this->successDelete = Yii::t('app', 'Model has been successfully deleted.');
     }
     if (!isset($this->successBatchDelete)) {
         $this->successBatchDelete = Yii::t('app', 'Models have been successfully deleted.');
     }
 }
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]]);
 }