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

[eluser]JayArias[/eluser]
How would I create a feature to log , everything done by my users to a database?
#2

[eluser]davidbehler[/eluser]
You could write a small library and whenever the user does something that you want to log, you call a method of that library and tell it to insert a new entry into the database.

Look here for infos on how to create your own libraries.
#3

[eluser]moodh[/eluser]
I made a model and autoloaded it, then used add('msg', type, flag etc) everywhere i want to log stuff.
I don't feel it's a library since it's pretty much write/read to a database.
#4

[eluser]davidbehler[/eluser]
Yeah, you are right...a model is propably enough




Theme © iAndrew 2016 - Forum software by © MyBB