D
D
dilshod_developer2016-01-28 11:32:01
Yii
dilshod_developer, 2016-01-28 11:32:01

How to save multiselect in yii2?

Good afternoon.
How can I save the received data from the select2 multiple element.
I want that for one user to bind several roles.
It is desirable to save without any cycle.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vyachin, 2016-06-13
@vyachin

there is https://github.com/voskobovich/yii2-many-to-many-b... - personally I'm not a fan of such things, but for fast prototyping it's the most, in conjunction with each validator there will be a fairy tale

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question