Welcome Guest, Not a member yet? Register   Sign In
configuration page
#1

[eluser]einsteinity[/eluser]
hi, i need ideas on creating configuration page which is controlled by admin..

for example, for every vote, user will be credited with extra 5 points.
i want to create a configuration page so if admin want to change that credit value,
he can do it from that configuration page directly.
so there will be a form to update the value.
if admin input 10 to the input form and he submit it, for every vote, user will be credited with extra 10 points.

how to create something like this in CI?
#2

[eluser]PhilTem[/eluser]
You will have to create a database table, that holds this value which you will read every time a user votes. Then you will simply credit the user with the database-stored amount of credits.

That's a simple CRUD task Wink
#3

[eluser]einsteinity[/eluser]
ah, save the configuration setting to database.
i forget that solution might be applicable to this problem..

for this time i think i should edit it from config file. :lol:

thanks..

any other ideas is acceptable too..
#4

[eluser]CroNiX[/eluser]
You said you wanted it controlled by admin? Are they going to be editing your config files directly on the server?

This would be a very simple thing to add using a database with a simple backend for data entry.
#5

[eluser]einsteinity[/eluser]
is there any other way besides using database?




Theme © iAndrew 2016 - Forum software by © MyBB