Welcome Guest, Not a member yet? Register   Sign In
Validate in MY_Model Jamie Rumbelow
#1

[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!




Theme © iAndrew 2016 - Forum software by © MyBB