用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3912|回复: 7
收起左侧

[已解决] 在线等---1.7.3 怎么升级到2.0 ? 报错

[复制链接]
发表于 2011-2-9 13:10:05 | 显示全部楼层 |阅读模式
本帖最后由 cmsphp 于 2011-2-11 21:49 编辑

1.7.3 怎么升级到2.0  直接把写的application覆盖新的就可以了吗?

An Error Was Encountered
In order to use the Session class you are required to set an encryption key in your config file.
发表于 2011-2-9 13:54:32 | 显示全部楼层
发表于 2011-2-9 15:42:30 | 显示全部楼层
要把MY_Controller.php和MY_Model.php等自己对CI写的扩展放到 application\core 下
发表于 2011-2-10 10:41:13 | 显示全部楼层
http://www.leadnt.com/PHP/CodeigniterCong1-7-2ShengJiDao2-0-0ShengJiShuoMing.html
 楼主| 发表于 2011-2-11 21:48:34 | 显示全部楼层
看了以后没有一个和我的报错相关的

An Error Was Encountered
In order to use the Session class you are required to set an encryption key in your config file.
发表于 2011-2-11 22:12:06 | 显示全部楼层
回复 5# cmsphp


   application/config/config.php里的$config['encryption_key'] = '';这行,给这个变量个值就可以了,比如$config['encryption_key'] = 'xxx';
发表于 2011-2-12 10:58:15 | 显示全部楼层
這個是session要加key...32位.在config.php中.
发表于 2013-11-20 10:03:39 | 显示全部楼层
楼上方法很管用,多谢

本版积分规则