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

[eluser]Unknown[/eluser]
[quote author="Johan André" date="1311617687"]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.[/quote]

Ah...I was adding the underscore before and it wasn't working. I know what I was doing wrong now....missing the underscore from the callback as well. Silly mistake

Thanks for you're replies Smile


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