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

DB Modules Table

Development and Programming

LucasHibbard's avatar
LucasHibbard
61 posts
14 years ago
LucasHibbard's avatar LucasHibbard

Hi All,

So I am working on creating my very first module :-D (wish me luck)! While setting up the install/uninstall/update functions, I was poking around the db trying to figure some stuff out and I noticed in the Modules table there is a field called ‘setting’. Now, I also noticed that none of the other modules I have use this field, but I was thinking:

Hey, that’s cool. I need to a place to store some very simple setting for my module, so this makes it a whole lot easier!

I then went along, created a ‘Settings’ form, collect the very basic information (2 fields), serializing these fields to one location, and then updating the Modules table with these settings. This final step is where the issue comes in. I update the table, then go to the db to make sure that the update took, and wouldn’t you know it the field was still null.

Am I missing something here? I’ve been trying to find away to use this field, but it doesn’t look like there’s many people asking this question. Do I not use this field for some reason? Should I create a new table just to hold 1 record?

Thanks for your help in advance.

~ Lucas

[Mod Edit: Moved to the Dev & Programming forum]

       

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.