Jump to content

Recommended Posts

Hi,

 

I was wondering, my friend built this framework where a database plays an important role for the applications, but doesn't it limit itself to database driven applications then? I was thinking to build one with as core layer file functions so my framework would fit for any sort of application, what do you think?

Link to comment
https://forums.phpfreaks.com/topic/87533-wondering-about-something/
Share on other sites

If the applications intent is to store data, then a database is the best solution. Thats what they are made for.

 

Well, those functions could be loaded ontop of the file layer, but the way he built it I think for example an online file explorer etc. is impossible cause for example in his get_config_value when the array keys are not found he get's them from the DB

If the applications intent is to store data, then a database is the best solution. Thats what they are made for.

 

Well, those functions could be loaded ontop of the file layer, but the way he built it I think for example an online file explorer etc. is impossible cause for example in his get_config_value when the array keys are not found he get's them from the DB

 

with no option to disable the db functions etc.

If your talking about where application specific configuration data is stored, you are correct. I would always have a filesystem config system or even a default hard coded value to fall back on if I used a database at all.

 

Your original post wasn't too clear on what data exactly you where talking about.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.