return array(
'DB_TYPE' => 'mysql', // 数据库类型
'DB_HOST' => 'localhost', // 服务器地址
'DB_NAME' => 'newstable', // 数据库名
'DB_USER' => 'root', // 用户名
'DB_PWD' => '52573751', // 密码
'DB_PORT' => '', // 端口
'DB_PREFIX' => 'cn_', // 数据库表前缀
'DB_FIELDTYPE_CHECK' => false, // 是否进行字段类型检查
'DB_FIELDS_CACHE' => true, // 启用字段缓存
'DB_CHARSET' => 'utf8', // 数据库编码默认采用utf8
'HTML_CACHE_ON' => false,
'URL_MODEL' => 2,
'URL_CASE_INSENSITIVE' => true,
'TMPL_TEMPLATE_SUFFIX' => '.tpl',
);
?>
在网址是输入:http://127.0.0.1/php5/thinkphpweb/prodect/id/8000001
报错::(
非法操作:id
错误位置
FILE: D:\apache\htdocs\ThinkPHP\Lib\Core\Action.class.php LINE: 231
TRACE
[13-06-18 16:08:06] D:\apache\htdocs\ThinkPHP\Lib\Core\Action.class.php (231) _404(非法操作:id)
[13-06-18 16:08:06] () Action->__call(id, )
[13-06-18 16:08:06] D:\apache\htdocs\ThinkPHP\Lib\Core\App.class.php (187) ReflectionMethod->invokeArgs(, Array)
[13-06-18 16:08:06] D:\apache\htdocs\ThinkPHP\Lib\Core\App.class.php (207) App::exec()
[13-06-18 16:08:06] D:\apache\htdocs\ThinkPHP\Lib\Core\Think.class.php (39) App::run()
[13-06-18 16:08:06] D:\apache\htdocs\ThinkPHP\Common\runtime.php (242) Think::start()
[13-06-18 16:08:06] D:\apache\htdocs\ThinkPHP\ThinkPHP.php (30) require(D:\apache\htdocs\ThinkPHP\Common\runtime.php)
[13-06-18 16:08:06] D:\apache\htdocs\php5\thinkphpweb\index.php (6) require(D:\apache\htdocs\ThinkPHP\ThinkPHP.php)
如果输入:http://127.0.0.1/php5/thinkphpweb/prodect?id=8000001就没有问题,这是为什么?
弄明白了是怎么回事了:当前知写了模块没有写操作,由于我写在index里面所省略了index于是就报错了,不能自动识别,加个index/id就可以了
最佳答案