Welcome Guest, Not a member yet? Register   Sign In
Hiding validation callback methods
#3

[eluser]Johan André[/eluser]
You mean the custom validation methods, right?

Just prefix the method names with an underscore, like _check_unique() instead of check_unique().
Don't forget to add the underscore in the set_rules() too, callback__check_unique() instead of callback_checkunique().
The underscore prevents the method to be accessible from the url.


Messages In This Thread
Hiding validation callback methods - by El Forum - 07-25-2011, 04:30 AM
Hiding validation callback methods - by El Forum - 07-25-2011, 04:43 AM
Hiding validation callback methods - by El Forum - 07-25-2011, 07:14 AM
Hiding validation callback methods - by El Forum - 07-25-2011, 11:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB