Hy,我有一个基于codeigniter 3.0.6的网站,我将升级到3.1.0, 我下载了codeigniter 3.1.0并复制了我的文件(视图,模型。控制器)。我改变了我的routes.php,database.php和config.php。
我正面临一个错误:
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
我该怎么办?