where should i put callback function? |
[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.
[eluser]InsiteFX[/eluser]
Hi anna, You can do the validation in your form. See Callback Show you how to do the callback validation. InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |