Welcome Guest, Not a member yet? Register   Sign In
where should i put callback function?
#1

[eluser]anna16[/eluser]
Hi guys

I created a callback function that will check for duplicate email and username
My question is, is it fine to put it in the controller?, since it is fetching data from the
database?
Or should it be in the Model class?
If so, can you show me some snippet codes that will call a callback function in the Model
Class and pass back the result to the controller class.

Thank in advanced.
#2

[eluser]InsiteFX[/eluser]
Hi anna,

You can do the validation in your form.

See Callback

Show you how to do the callback validation.

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB