我正在尝试按照github页面上的README.md中的描述来设置ZfcUser。我理解安装后的步骤: Zend\Db;2.现在,在./configs/autoload/module.zfcus er.config.php中的' PDO‘设置下指定pdo连接的DI别名。如果您在上一步中创建了./config/autoload/database.config.php文件,则您将指定的别名为'masterdb‘。
有没有人能描述一下我到底要做什么?非常感谢。
发布于 2012-05-16 20:34:23
通过更新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',
),
),表=>更正为tableName
发布于 2012-05-02 23:30:50
我也有同样的问题。解决方案是在module.zfcuser.config.php中取消第15行的注释,并且不使用'masterdb‘...
'zend_db_adapter‘=> 'Zend\Db\Adapter\Adapter',
https://stackoverflow.com/questions/9903425
复制相似问题