Disclaimer: I may be posting this in the wrong forum. Move it if need be…
I’m trying to develop a store locator module for EE 2.0. All I want to do is put the fields I’m storing (location id, location name, lat, lon, etc.) in a table called exp_stores. I’ve went through the module development documents for 2.0, and I can’t find anywhere that it talks about how to insert new rows into the database (or to retrieve a specific one, and then update it, for that matter.)
Is there any more documentation on this subject?
Hi Nicholas- Have you seen this Module Development Tutorial?
This walks through the basics.
Okay, so after looking at the Wiki module, I think I’m finally clear on how to add and remove stuff in the DB. However, when I run my geocoder, I get this:
A PHP Error was encountered Severity: Warning Message: file_get_contents(http://maps.google.com/maps/geo?q=37209&output=xml) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request Filename: stores/mcp.stores.php Line Number: 41
Any clues to why file_get_contents() doesn’t work inside EE?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.