Php 如何将GoogleMapAPI放入codeigniter?
我的图书馆是从 并按照 但我收到了一条错误消息 遇到一个PHP错误Php 如何将GoogleMapAPI放入codeigniter?,php,codeigniter,google-maps,Php,Codeigniter,Google Maps,我的图书馆是从 并按照 但我收到了一条错误消息 遇到一个PHP错误 Severity: 8192 Message: Methods with the same name as their class will not be constructors in a future version of PHP; Googlemaps has a deprecated constructor Filename: libraries/Googlemaps.php Line Number: 16 Ba
Severity: 8192
Message: Methods with the same name as their class will not be constructors in a future version of PHP; Googlemaps has a deprecated constructor
Filename: libraries/Googlemaps.php
Line Number: 16
Backtrace:
File: C:\xampp\htdocs\test_map\application\controllers\Welcome.php
Line: 25
Function: library
File: C:\xampp\htdocs\test_map\index.php
Line: 292
Function: require_once
有人知道如何解决这个问题吗?尝试重命名
function Googlemaps($config = array())
{
if (count($config) > 0)
{
$this->initialize($config);
}
log_message('debug', "Google Maps Class Initialized");
}
到
如果不起作用,则than库可能需要更多的代码更改,因为它的代码已超过2-3年。请尝试重命名
function Googlemaps($config = array())
{
if (count($config) > 0)
{
$this->initialize($config);
}
log_message('debug', "Google Maps Class Initialized");
}
到
如果不起作用,than library可能需要更多的代码更改,因为它的代码已超过2-3年。您需要使用CI_Googlemaps更改类名,使用__构造更改构造函数名称。您需要使用CI_Googlemaps更改类名,使用__构造更改构造函数名称。这给了我一个关于变量的错误$mapit在关于变量$map时给我一个错误