dongwen2162 2011-03-05 02:59
浏览 55
已采纳

两个表的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 2011-03-05 05:07
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?