【发布时间】:2022-04-01 02:25:35
【问题描述】:
如何实现 ACL 库?将 ACL 用于用户角色的最佳方式是什么?在标准 PHP 中,我会编写如下代码:
if (userTypeId == 'Admin') {
hello Admin
} else if (userTypeId == 'Member') {
hello member
}
你会如何使用 CodeIgniter 做到这一点?
【问题讨论】:
-
ACL(benedmunds.com/ion_auth/#in_group)请使用Ion Auth库和
in_group函数,它是轻量级的Auth库
标签: php codeigniter acl