Answer the question
In order to leave comments, you need to log in
How to add an attribute containing invalid characters to a model in Yii2?
Hello.
It is necessary to add and validate a field containing a minus sign -> '-'.
How can this be checked?
UPD: you need to fill in the form with data and validate it. If the attribute is not added, then an exception is thrown - [yii\base\UnknownPropertyException]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question