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