Welcome Guest, Not a member yet? Register   Sign In
Load custom settings from database in all pages
#1

[eluser]Unknown[/eluser]
I'm trying to figure out how to do this but I'm not sure..

I want to save custom settings in the database which have to load on each page.

Current database structure:
Code:
Settings
-> id
-> name
-> value

For example:
Code:
Settings
-> 1
-> site_name
-> My swiss white shepherd dog

How can I load all the entries from this table into memory so that it can be accessed on every page?
Is it possible with a hook? And which code can I use to make the array (I think it has to be in an array?) accessible from every page?

Thank you in advance.


Messages In This Thread
Load custom settings from database in all pages - by El Forum - 08-10-2014, 07:03 AM
Load custom settings from database in all pages - by El Forum - 08-10-2014, 07:26 AM
Load custom settings from database in all pages - by El Forum - 08-10-2014, 09:47 AM
Load custom settings from database in all pages - by El Forum - 08-10-2014, 10:57 AM
Load custom settings from database in all pages - by El Forum - 08-10-2014, 11:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB