Welcome Guest, Not a member yet? Register   Sign In

How would I create a feature to log , everything done by my users to a database?

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.

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.

Yeah, you are right...a model is propably enough

Theme © iAndrew 2016 - Forum software by © MyBB