How do you save data from your controllers to your models? |
[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, 12:06 PM
How do you save data from your controllers to your models? - by El Forum - 11-07-2012, 12:54 PM
How do you save data from your controllers to your models? - by El Forum - 11-07-2012, 01:23 PM
How do you save data from your controllers to your models? - by El Forum - 11-07-2012, 01:29 PM
|