Welcome Guest, Not a member yet? Register   Sign In
setting the $field variable in a custom callback
#5

[eluser]Bramme[/eluser]
I just can't figure it out why it's not working.

When I do
Code:
$array = func_get_args();
            print_r($array);
in my callback function (in my controller), I get this:

Code:
Array
(
    [0] =>
    [1] =>
)

So two params ARE being sent to the function (even when I changed the function to function _file_selected($str) {}), but they're both empty. This is mind boggling.

More mind boggling stuff: I only get the empty array at the beginning of my html when I ONLY set the callback in the rules, the moment I use "required" too, it won't print the array anymore.


Messages In This Thread
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 03:45 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 06:29 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 07:51 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 08:47 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:07 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:21 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:29 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:42 AM
setting the $field variable in a custom callback - by El Forum - 09-30-2009, 09:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB