E
E
Evgeny Milushkin2015-03-27 08:05:24
Yii
Evgeny Milushkin, 2015-03-27 08:05:24

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

1 answer(s)
V
Vadim Stepanov, 2015-04-02
@Vdm17

What does he write? What's the error? The class was registered in use?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question