Welcome Guest, Not a member yet? Register   Sign In
Newbie: Problem with Geolocater
#1

[eluser]Private Dancer[/eluser]
Hi forums.

I'm very new with CI and i get a problem. I try to use the Geolocater like described here => http://codeigniter.com/wiki/Geo_Locater/

I set up the DB and also the library like the wiki. I then added the following code to my controller:
Code:
$this->load->library('geolocater');
        $data['geo'] = $this->geolocater->getlocation('<myip>', TRUE);
        
        $this->load->view('start_view', $data);

And the following in the view:
Code:
&lt;?php echo $geo;?&gt;

The only output i then have is "Array" with some whitespace. I think i do a mistake in the controller. I probed a lot. But nothing works. Hope you can help. Smile


Messages In This Thread
Newbie: Problem with Geolocater - by El Forum - 03-30-2008, 12:22 PM
Newbie: Problem with Geolocater - by El Forum - 03-30-2008, 01:41 PM
Newbie: Problem with Geolocater - by El Forum - 03-30-2008, 02:05 PM
Newbie: Problem with Geolocater - by El Forum - 03-30-2008, 02:16 PM
Newbie: Problem with Geolocater - by El Forum - 03-30-2008, 02:41 PM
Newbie: Problem with Geolocater - by El Forum - 03-30-2008, 02:49 PM
Newbie: Problem with Geolocater - by El Forum - 03-30-2008, 02:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB