Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] $this->db->insert() adds all global fields from controller
#9

[eluser]yarinb[/eluser]
while using a standard class should work, I loose all the benefits of working with models this way since I don't have access to $this->db object from within my model.

I found a way to use db->set() in order to set the insert fields to the database. it's somewhat cumbersome but I still maintain CI's way of work.

thanks a lot for your help!

Yarin


Messages In This Thread
[SOLVED] $this->db->insert() adds all global fields from controller - by El Forum - 07-14-2008, 07:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB