Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何将GoogleMapAPI放入codeigniter?_Php_Codeigniter_Google Maps - Fatal编程技术网

Php 如何将GoogleMapAPI放入codeigniter?

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

我的图书馆是从

并按照

但我收到了一条错误消息

遇到一个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

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时给我一个错误