public function validateAttribute($model, $attribute)
{
$value = $model->{$attribute};
if (!is_numeric($value) && !is_float($value)) {
return $model->addError($attribute, Yii::t('yii', $this->message, ['attribute' => $model->getAttributeLabel($attribute)]));
}
}