Welcome Guest, Not a member yet? Register   Sign In
How do you save data from your controllers to your models?
#4

[eluser]Juan Velandia[/eluser]
Well to be honest I'm not an expert in CI to decide the "best way". But I always try to create an array with the data to pass to the model and use the $this->db->insert_batch(); so I think you can go with it ... and you can check:

http://ellislab.com/codeigniter/user-gui...tml#insert

they recomend to use an array for inserting data, so go with it!



Messages In This Thread
How do you save data from your controllers to your models? - by El Forum - 11-07-2012, 01:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB