non-parameter validation |
[eluser][email protected][/eluser]
Hello, I tend to use the Validation for all of my form-validation and it works beautifully. However, how can I execute a custom method that is not related to a single parameter, yet still using the class? ie. i have a method called function validateAlgorithmAmount($x, $y, $z){} where $x, $y and $z are three different post parameters. how can i call this function, and then on the front-end display when it fails??? thank you.
[eluser]Pascal Kriete[/eluser]
You make it the last callback on the last validation rule of the three. Code: rules['x'] = trim|required|xss_clean; I use something like this for my login forms, with a checkCredentials callback, which then calls my auth library. |
Welcome Guest, Not a member yet? Register Sign In |