CodeIgniter Forums
Database (Active Records) use in Log? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Database (Active Records) use in Log? (/thread-58669.html)



Database (Active Records) use in Log? - El Forum - 07-04-2013

[eluser]JackU[/eluser]
I have been trying to use the Database class (Active Records) to store log information. This is very handy since it doesn´t care about what DB you use.

Only problem. It doesn´t seem to be loaded in this early stage. I would prefer to use a Model for this. But that doesn´t seem to be loaded either.

I know that the Log is one of the earliest loads. So, is there a way to do this with CodeIgniter?

Also...i have an Extended_Log class that i use to do this.