Hi i have 3 Yii based systems, something like:
sys1.domain.com
sys2.domain.com
sys3.domain.com
now, this 3 systems share the same database, same users, and other entities… and of course the 3 yii auth tables.
now my question is, when configuring auth, how do i separate auth rules for each system?
i’m using Yii extension “rights” to manage roles, if this is of any help.
As you have single DB for three systems sys1, sys2 and sys3 and you would like only auth table diffent, you can add three auth tables auth_sys3, auth_sys2, auth_sys1 and in config file of each system write configuration or at global place write php logic to make alias of auth_sys1,auth_sys2,auth_sys3 as auth so you dont requrie to make any changes in internal code to call auth.