Form Validation - Callback to a Model? |
(02-01-2018, 12:56 AM)minsk832 Wrote: Hello, Hi Minsk832, I've you're trying to shift form_validation to the model (I was inspired by Lonnie Ezell's MY_Model), maybe you're struggling with the same issue as I had: check 'use-thing-as-a-rule' and check proper formatting (see https://forum.codeigniter.com/thread-69930.html). You should update the validation method in your model to something like this: PHP Code: function is_unique_email($email) Good luck! Zeff |
Messages In This Thread |
Form Validation - Callback to a Model? - by minsk832 - 02-01-2018, 12:56 AM
RE: Form Validation - Callback to a Model? - by Zeff - 02-01-2018, 04:26 AM
RE: Form Validation - Callback to a Model? - by minsk832 - 02-01-2018, 06:58 PM
RE: Form Validation - Callback to a Model? - by Narf - 02-01-2018, 09:01 PM
|