Esempio n. 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();
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  */
 protected function redirectError()
 {
     return empty($this->redirectError) ? $this->refresh() : parent::redirectError();
 }