Post by jhug33 » Thu Aug 15, 2019 7:11 pm

I was wondering, in my admin controller for a module, i'm trying to create, I was able to install my tables at the moment of activating, but if I want to save my own settings in my own tables, I'm not quite sure where I should do that, I took example on some default module, and they all use the model(settings/settings) which saves their settings, so should I do the same but with my own model and my own function that inserts?



Thu Aug 15, 2019 7:06 pm

Post by Johnathan » Thu Aug 15, 2019 10:26 pm

Generally, creating your own database tables isn't recommended unless you need a lot of data storage. The "setting" table is supposed to hold data for extensions (and the "module" table for modules) --- that's what they're designed for.

If you really do need a lot of data storage, then creating your own database table is fine. You'll have to create your own database queries to read to and write from that table, though. If you're not familiar with MySQL query syntax, make sure you read up on that so you understand how to run the queries yourself.

Image Image Image Image

User avatar
Global Moderator


Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: jorem and 15 guests