Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Yii 框架的新手。
我看到 Yii 有 Yii::app()->user->isGuest 它只是检查你是否登录。
我想检查用户是访客还是管理员或成员...以向其他人显示信息和权限。请帮我。
任何帮助将不胜感激。谢谢。
Yii-Rbac
yii 文档:http ://www.yiiframework.com/doc/guide/1.1/en/topics.auth#role-based-access-control
希望这可以帮助
Yii - 基于角色的访问控制
http://www.yiiframework.com/wiki/328/simple-rbac/