I want to be able to write only numbers and numbers with + at the end in the field, for example 10+
As far as I understand, it is impossible to do this for an integer
It turns out that I need to make the field a string and add validation where only numbers and + can be used, or what is better?
And how do I do it in rules(), I only know how to add a max value:
public function rules()
{
return [
[['number'], 'string', 'max' => 11],
];
}