我在前台有登录表单(路径: mysite/front)。它是基于zfcuser模块的。我想为后端添加相同的表(路由: mysite/admin),唯一的区别是它将使用DB中的另一个表。我该怎么做呢?
发布于 2013-03-25 18:06:51
正如您在模块安装自述中看到的,您可以在模块配置中通过以下数组为zfc用户提供实体:
'zfcuser' => array(
// telling ZfcUser to use our own class
'user_entity_class' => 'Falcon\Entity\User',
// telling ZfcUserDoctrineORM to skip the entities it defines
'enable_default_entities' => false,
),因此,将Falcon\Entity\User (falcon是我的开发模块的名称,忽略它:)更改为您想要进行身份验证的任何表/实体
https://stackoverflow.com/questions/15604253
复制相似问题