开发者

cakephp rename acl table name

开发者 https://www.devze.com 2023-02-20 13:31 出处:网络
I am new to cakephp and trying to follow the ACL Authentication tutorial from the cakephp book. However I would like to call my users table \'members\' instead. so I have usernames and passwords store

I am new to cakephp and trying to follow the ACL Authentication tutorial from the cakephp book. However I would like to call my users table 'members' instead. so I have usernames and passwords stored in a table called 'members'. but the ACL auth always seems to be looking for a user model and users table. although that is not configured anywhere.

how can I tell the ACL/开发者_Python百科Auth component to look for the members table/model instead ?

thanks alot!


sorry I am stupid and it's late, I found the answer already. the solution is to use $this->Auth->userModel = 'Member'; in the auth setup (function beforeFilter)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号