code: public function init()
      {
          parent::init();
          if ($this->message === null) {
              $this->message = $this->requiredValue === null ? Yii::t('yii', '{attribute} cannot be blank.')
                  : Yii::t('yii', '{attribute} must be "{requiredValue}".');
          }
      }
docs: {@inheritdoc}