谁帮我看看什么毛病啊3.2.3版本

浏览:494 发布日期:2015/03/24 分类:求助交流
Logo\Home\Conf\config.php<?php
$configarra= array(
    //'配置项'=>'配置值'
    'DB_PREFIX'             =>  'wb_',    // 数据库表前缀 
);
//print_r(array_merge($configarra, $configarrb));
return array_merge(include '../../../config.php',$configarra); //数据库合并
./config.php<?php
return array(
    'DB_TYPE'               =>  'mysqli',     // 数据库类型
    'DB_HOST'               =>  'localhost', // 服务器地址
    'DB_NAME'               =>  'wtwk',          // 数据库名
    'DB_USER'               =>  'root',      // 用户名
    'DB_PWD'                =>  '',          // 密码
    'DB_PORT'               =>  '3306',        // 端口
    'DB_CHARSET'            =>  'utf8',      // 数据库编码默认采用utf8
    'ERROR_MESSAGE'         =>  '页面错误!请稍后再试~~~',
    'SHOW_ERROR_MSG'        =>  true,
    'URL_CASE_INSENSITIVE'  =>  true,
    'LAYOUT_NO'             =>  TRUE ,
    'URL_MODEL'             => 2,
);
如果不合并就没问题---------------------合并配置后就出错了

无法加载数据库驱动: Think\Db\Driver\
错误位置
FILE: D:\wamp\www\ThinkPHP\Library\Think\Db.class.php  LINE: 42
TRACE
#0 D:\wamp\www\ThinkPHP\Library\Think\Db.class.php(42): E('???????????????...')
#1 D:\wamp\www\ThinkPHP\Library\Think\Model.class.php(1423): Think\Db::getInstance('')
#2 D:\wamp\www\ThinkPHP\Library\Think\Model.class.php(97): Think\Model->db(0, '', true)
#3 D:\wamp\www\ThinkPHP\Common\functions.php(621): Think\Model->__construct('Zz', '', '')
#4 D:\wamp\www\w8\Logo\Home\Controller\IndexController.class.php(7): M('Zz')
#5 [internal function]: Home\Controller\IndexController->index()
#6 D:\wamp\www\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(object(Home\Controller\IndexController))
#7 D:\wamp\www\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#8 D:\wamp\www\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#9 D:\wamp\www\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#10 D:\wamp\www\w8\index.php(26): require('D:\wamp\www\Thi...')
#11 {main}
最佳答案
评论() 相关
后面还有条评论,点击查看>>