Best Practices: Sharing a project |
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 (?). |
Messages In This Thread |
Best Practices: Sharing a project - by MGatner - 01-31-2020, 07:59 AM
RE: Best Practices: Sharing a project - by InsiteFX - 01-31-2020, 09:02 AM
RE: Best Practices: Sharing a project - by MGatner - 01-31-2020, 09:08 AM
RE: Best Practices: Sharing a project - by InsiteFX - 01-31-2020, 09:16 AM
RE: Best Practices: Sharing a project - by jreklund - 01-31-2020, 11:59 AM
RE: Best Practices: Sharing a project - by John_Betong - 01-31-2020, 08:12 PM
RE: Best Practices: Sharing a project - by MGatner - 02-01-2020, 05:27 AM
RE: Best Practices: Sharing a project - by jreklund - 02-01-2020, 07:34 AM
RE: Best Practices: Sharing a project - by littlej - 02-02-2020, 12:16 AM
RE: Best Practices: Sharing a project - by littlej - 02-03-2020, 11:33 PM
RE: Best Practices: Sharing a project - by MGatner - 02-04-2020, 04:09 AM
RE: Best Practices: Sharing a project - by littlej - 02-04-2020, 09:25 AM
|