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?

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.