Rules Model in Yii2

Hi!!

I am just testing how the framework works
So… in model we can define the rule of the attributes right!,
Where we can speficy all validations.
So I wanted to know, if we can give error custom message for the data type.
[‘name’,‘string’], on this ?

https://www.yiiframework.com/doc/guide/2.0/en/input-validation#customizing-error-messages

1 Like

Ok!!!
thank you for helping me