Error when trying to use a google maps library
  • toymachiner62toymachiner62 February 16
    I'm trying to use this library http://www.in-the-attic.co.uk/2010/08/02/codeigniter-google-maps-library-using-google-maps-api-version-3/ and so I put the files in the fuel/application/libraries folder and when I try to load the library by calling
    $this->load->library('Gmap');


    I get this error:

    Severity: Notice

    Message: Undefined index: Gmap

    Filename: fuel/Loader.php

    Line Number: 206

    Fatal error: Cannot access empty property in project/fuel/application/third_party/fuel/Loader.php on line 215


  • adminadmin February 18
    I think it's because the filename provided in the download is GMap and the class name is Gmap. Try changing the file name to Gmap.
  • toymachiner62toymachiner62 February 18
    Changing the filename to Gmap and then calling it using lowercase like this $this->load->library('gmap'); worked.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories