Mikee Freedom írta: > it's just gone 9am down here in NZ :) > > you can deinfe the functions in /app/app_model.php if you think they > will be used by multiple models e.g. unique. or you can place them in > the particular model that requires that validation method > /app/models/example_model.php. > > i've changed the validation a little bit and i actually pass the data > array to be validated to the loadValidation function. if nothing is > passed then i fall back on the $_POST array. so, using this method you > could pass data from multiple objects and use that for your > validation. > > so within your controller you can grab data from multiple models and > pass it to your loadValidation method of your model. then use that > data in your validation methods. > > do you know what i mean? Yes :)
And an other question. Is it easy to change this validation to some AJAX validation? -- Ámon Tamás http://amon.hu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
