douti0467 2016-12-28 13:28
浏览 67
已采纳

将codeigniter从3.0.6升级到3.1.0

Hy, I have a site based on codeigniter 3.0.6 which I am going to upgrade to 3.1.0, I downloaded the codeigniter 3.1.0 and copy my files (view, model. controller). I changed my routes.php, database.php and config.php.

I am facing an error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Travels::$db

Filename: core/Model.php

Line Number: 77

Backtrace:

File: D:\xamp\htdocs\update\application\models\Travel.php
Line: 95
Function: __get

File: D:\xamp\htdocs\update\application\controllers\Travels.php
Line: 29
Function: all_des

File: D:\xamp\htdocs\update\application\controllers\Travels.php
Line: 41
Function: main_header

File: D:\xamp\htdocs\update\index.php
Line: 315
Function: require_once

what should I do ??

  • 写回答

1条回答 默认 最新

  • doujie7497 2016-12-28 13:40
    关注

    Try just replace the system folder with the new one.

    Please refer to: Upgrading from 3.0.6 to 3.1.0

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 有关“完美的代价”问题的代码漏洞
  • ¥15 请帮我看一下这个简易化学配平器的逻辑有什么问题吗?
  • ¥15 暴力法无法解出,可能要使用dp和数学知识
  • ¥15 wpf通过绑定控件自身的值,来实现背景颜色的切换
  • ¥15 CDH6.3 运行hive -e hive -e "show databases;"报错:hive-env.sh:行24: hbase-common.jar: 权限不够
  • ¥15 SSRS制作的报表打开报错,无法正常显示网页
  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问