Welcome Guest, Not a member yet? Register   Sign In
Callback when using form_validation.php $config array
#8

[eluser]Ickes[/eluser]
Thanks a lot Ivan. Really appreciate the effort.
[quote author="Iván Argulo" date="1247619402"]This worked fine for me...[/quote]

Try as I might I just can't get my code to access the callback function. I used exactly what Ivan posted and still no luck. I can access all the predefined rules - no problem.

Anyone have any ideas why the custom callback function will not access? Really weird.

EDIT: Got it!!!

Had one extra } that didn't belong which inadvertantly placed my code outside of my controller. Additionally, to make the custom error message work I changed to....
Code:
$this->form_validation->set_message('in_domain', 'The %s field can not be the word "test"');

Ivan, thanks again for all the help!


Messages In This Thread
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:17 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:23 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:33 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:39 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:51 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:56 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:56 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 02:13 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 02:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB