Tagged: _skip_role

在视图中按照如下方式使用,生成的 链接 符合预期 0

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:...