2
2

A PHP Error was encountered
Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; DX_Auth has a deprecated constructor

Filename: libraries/DX_Auth.php

Line Number: 16

Backtrace:

File: C:\xampp1\htdocs\kinomonster\application\controllers\Auth.php
Line: 14
Function: __construct

File: C:\xampp1\htdocs\kinomonster\index.php
Line: 315
Function: require_once


Леонид Лапшин
5 years ago






Нужно заменить в файле application->libraries - DX_auth.php строку function DX_Auth() на function __construct(). т.е. как в примере ниже:

//function DX_Auth() закоментить
function __construct()
{
$this->ci =& get_instance();

log_message('debug', 'DX Auth Initialized');

// Load required library
$this->ci->load->library('Session');
$this->ci->load->database();

// Load DX Auth config
$this->ci->load->config('dx_auth');

// Load DX Auth language
$this->ci->lang->load('dx_auth');

// Initialize
$this->_init();
}

Руслан А.
4 years ago

Один ответ