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 ??