Mistake:

Message: Assigning the return value of new by reference is deprecated 

Already php lowered to 5.4, still the same error, although in the CI documentation they write that you can use 5.4 and higher. An error occurs when trying to connect a class. I tried to find the line in the core of the type $inst = & new Obj(); not found.

 class Auth extends MY_Controller{ public function __construct(){ parent::__construct(); } } require_once 'Auth.php'; class Admin extends Auth{ public function __construct(){ parent::__construct(); } } 
  • Sense from lowering to 5.4? The link in the constructor was available in version 4. In versions 5+, this old syntax is not available. - Suvitruf
  • And how in this case to solve the problem? - quaresma89
  • Are you sure you have the latest version of Codigniter? - Suvitruf
  • define ('CI_VERSION', '3.0.3'); - quaresma89
  • Strange, this problem seems to have been fixed in version 2. - Suvitruf

0