Answer the question
In order to leave comments, you need to log in
How to enable yii2-phonenumbers behavior?
Can you please tell me how to connect the https://github.com/omnilight/yii2-phonenumbers behavior to the model?
I connect like this, it doesn't work:
return [
..
[
'class' => PhoneNumberBehavior::className(),
'defaultRegion' => 'RU',
'attributes' => ['phoneLocal' => 'contact_phone'],
],
..
]
Answer the question
In order to leave comments, you need to log in
What does he write? What's the error? The class was registered in use?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question