A
A
AlexSer2018-04-01 11:18:11
Yii
AlexSer, 2018-04-01 11:18:11

How to organize select change in Yii2 top menu?

Hello! Due to the small number of employees and computers in applications, it is necessary to quickly change the user (because 1 user works with 2 specialties), then each time they are tired of logging in.
I need to add a quick change
Here is a screen: 5ac0958ec76fc895697244.jpeg
How can I organize it? Add a form to the menu from bootstrap?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-04-01
@AlexSer

Good afternoon.
You can form, you can catch the option value through js and send ajax to the server.
On the server, check the access rights to the specialty and return the result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question