• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load settings from database at bootstrap

#1
[eluser]Saquib[/eluser]
I want to load some settings from database in my application, I am planing to do that using a model which will be auto-loaded from config.

In model construct i will perform actions like a db query and fetch settings and store it in session for later use.

Quote:Application is allowed access from current ip address
Is App is marked as offline
Setting TimeZone for app

My Question is

Quote:What is the right way to load settings which should be available at very early stage in app (on bootstrap) ?
Is it good to store settings in Session ? what else can be done (Almost 25 columns data)?

Please help !


Messages In This Thread
Load settings from database at bootstrap - by El Forum - 09-16-2012, 07:11 PM
Load settings from database at bootstrap - by El Forum - 09-16-2012, 07:28 PM
Load settings from database at bootstrap - by El Forum - 09-16-2012, 11:23 PM
Load settings from database at bootstrap - by El Forum - 09-17-2012, 10:08 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.