Zfc用户设置问题


ZfcUser setup issue

我正在尝试按照github页面上README.md中的描述设置ZfcUser。除了安装后的这一步,我完全理解:Zend''Db;2.现在,在中为您的PDO连接指定DI别名/configs/autoload/module.zfcuser.config.php,位于"pdo"设置下。如果您创建了/config/autoload/database.config.php文件中,您将指定的别名为"masterdb"。

有人能描述一下我该做什么吗?非常感谢。

通过更新ZfcUser的module.config.php中的参数名称来修复此问题。已从中更正

  'zfcuser_user_tg' => array(
            'parameters' => array(
                'table' => 'user',
                'adapter'   => 'zfcuser_zend_db_adapter',
            ),
        ),
        'zfcuser_usermeta_tg' => array(
            'parameters' => array(
                'table' => 'user_meta',
                'adapter'   => 'zfcuser_zend_db_adapter',
            ),
        ),

'zfcuser_user_tg' => array(
            'parameters' => array(
                'tableName' => 'user',
                'adapter'   => 'zfcuser_zend_db_adapter',
            ),
        ),
        'zfcuser_usermeta_tg' => array(
            'parameters' => array(
                'tableName' => 'user_meta',
                'adapter'   => 'zfcuser_zend_db_adapter',
            ),
        ),

table=>已更正为tableName

我也遇到了同样的问题。解决方案是取消对module.zfcuser.config.php中第15行的注释,而不使用"master db"。。。

'zend_db_adapter'=>'zend''db''adapter''adapter',

请参阅支持问题。。。https://github.com/ZF-Commons/ZfcUser/issues/42