dongwen2162
dongwen2162
2011-03-05 02:59

两个表的Zend_Auth_Adapter_DbTable?

已采纳

Usually, you keep username and password fields in one table (for example Users). In this case it is easy to use Zend_Auth_Adapter_DbTable. However, what if I have password in a separate Passwords table. How do you uses Zend_Auth_Adapter_DbTable to have identityColumn in a one table (Users) and credentialColumn in other table (Passwords)?

Thanks.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • douzai2562 douzai2562 10年前

    I would recommend creating a table view from Users and Passwords tables. Than you would specify the view as tableName for Zend_Auth_Adapter_DbTable.

    点赞 评论 复制链接分享

相关推荐