We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Development of a EE 2.0 Module

Development and Programming

nicholaswyoung's avatar
nicholaswyoung
23 posts
16 years ago
nicholaswyoung's avatar nicholaswyoung

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?

       
Adam Dorsey's avatar
Adam Dorsey
1,439 posts
16 years ago
Adam Dorsey's avatar Adam Dorsey

Hi Nicholas- Have you seen this Module Development Tutorial?

This walks through the basics.

       
nicholaswyoung's avatar
nicholaswyoung
23 posts
16 years ago
nicholaswyoung's avatar nicholaswyoung

Thanks, Adam. Yeah, I’ve worked through that, and are ready for some more meat. 😉

       
Adam Dorsey's avatar
Adam Dorsey
1,439 posts
16 years ago
Adam Dorsey's avatar Adam Dorsey

Our dev’s are currently working hard at updating the EE2 docs.

You may want to check the 1.x docs, or even take a peek into a first-party module.

The Wiki module for EE2, may be a good place to start 😊

       
nicholaswyoung's avatar
nicholaswyoung
23 posts
16 years ago
nicholaswyoung's avatar nicholaswyoung

Awesome. Thanks for the advice - I’ll go dig in now.

       
Adam Dorsey's avatar
Adam Dorsey
1,439 posts
16 years ago
Adam Dorsey's avatar Adam Dorsey

Sure. Let us know if this helps you along 😊

       
nicholaswyoung's avatar
nicholaswyoung
23 posts
16 years ago
nicholaswyoung's avatar nicholaswyoung

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?

       
Ingmar's avatar
Ingmar
29,245 posts
16 years ago
Ingmar's avatar Ingmar

Let me move this thread to “Modules” for you.

       
nicholaswyoung's avatar
nicholaswyoung
23 posts
16 years ago
nicholaswyoung's avatar nicholaswyoung
Let me move this thread to “Modules” for you.

Thanks! I’ll probably get a lot more help that way. 😊

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.