Zend_Auth_Adapter using a data converter

The first post here is so sorry if it seems newb to me,

I am trying to find a way to use Zend_Auth_Adapter with a data converter, but it seems to be struggling. I know I can use Zend_Auth_Adapter_DbTable and bind this to a db table, but that seems to deny the whole reason for having a data converter (I think) ?! Should I create a custom adapter for mapper so that I can use mapper to select whatever I want as a data source?

+3
source share
1 answer
Good question. The proper way to do this is to collapse your own Zend_Auth_Adapter. I did this for Doctrine (my ORM).

I also use the data display template throughout the application, but I do not use it for my authentication. This adds a lot of unnecessary imo overheads. I am simply querying the database directly using my Auth_Adapter.

+3
source

Source: https://habr.com/ru/post/1714104/


All Articles