Rules Model in Yii2


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 ?

1 Like

thank you for helping me