In the backend application of Yii2, the current user can switch roles, hoping to have a role=distributor or role=management in all links. Links in the view implement echo url::toroute(/user/profile); . How to achieve?
浏览量: 13 1. Now the portal link to switch the role to Distributor is the background homepage:https://console.apply.local/?role=distributor 2. I hope that in this portal URL, all links are automatically added to the request parameter:...
Recent Comments