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

[eluser]ivantcholakov[/eluser]
From other project I've explored, indeed I see they tend to create a special library "Settings".

Here is a sample solution: https://github.com/ericbarnes/ci-settings. I did not use this original source, but it was a good starting point for me.

I don't need setting grouping, so I did something simplified: https://github.com/ivantcholakov/starter...ttings.php. I also added a data type guessing feature, it could be removed. If you like this library, you only have to rewrite the lines for database access, because I used a custom base class for models.


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