Welcome Guest, Not a member yet? Register   Sign In
Best Practices: Sharing a project
#10

(This post was last modified: 02-04-2020, 12:12 AM by littlej.)

Hey ! I was looking for something totally different, but I found your plugin @MGatner: https://github.com/tattersoftware/codeigniter4-settings

It looks like your first thought was to save settings in the database (your plugin), and to use the env file too (this thread). But it isn't a solution in my case as:
1/ I don't always have a database as I said.
2/ With the env file/config folder, I am in the same situation as you...

It seems like the only solution for me right now is to create my own files elsewhere to store settings...

FYI, in the Slack bot I have created, i store things like API tokens (prod + dev), UserID, bot name, etc... This is a single user application. Settings are app settings, not user preferences. But the user should still be able to modify this from his frontend interface. There is no need for a database, these are the only info to store. In this case, to me, the config folder has no more interest and shouldn't be in the app folder. These are not my settings, it is just here because... CI requires it (?).
Reply


Messages In This Thread
Best Practices: Sharing a project - by MGatner - 01-31-2020, 07:59 AM
RE: Best Practices: Sharing a project - by littlej - 02-03-2020, 11:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB