Example #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     // @todo Yii::t() yii2-crud
     if (!isset($this->flashSuccess)) {
         $this->flashSuccess = Yii::t('yii2-crud', 'Item(s) successfully created');
     }
     if (!isset($this->flashError)) {
         $this->flashError = Yii::t('yii2-crud', 'Item(s) creation failed');
     }
     parent::init();
 }
Example #2
0
 /**
  * @inheritdoc
  */
 protected function redirectError()
 {
     return empty($this->redirectError) ? $this->refresh() : parent::redirectError();
 }