CodeIgniter Forums
Validate in MY_Model Jamie Rumbelow - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Validate in MY_Model Jamie Rumbelow (/showthread.php?tid=55517)



Validate in MY_Model Jamie Rumbelow - El Forum - 10-30-2012

[eluser]Unknown[/eluser]
Good afternoon!
I'm using the MY_Model Jamie Rumbelow (https://github.com/jamierumbelow/codeigniter-base-model), is quite interesting if someone could help me know the next question?
I have two models/tables for one Person and Patient, the controller I capture and separate the appropriate fields and mount the array that goes into each model (Person and Patient). Then each model utilizes my MY_Model where the validate is done and to insert each of the arrays.
The problem is in validate because if one of the checks pass, it will be recorded that the same one that will not go to another model. So half of the data can be recorded and the other half not.

Thank you!
Hugs!