Welcome Guest, Not a member yet? Register   Sign In
Problem validating start and end dates with call back
#2

[eluser]JonoB[/eluser]
I'm working with callbacks at the moment as well, so I feel your pain. First off, are you 100% sure that your callback function is actually being called?

Code:
private function date_check_compare () {
var_dump('callback is being called');
....
}

On a separate issue, I noticed that you use:
Code:
if (!$this->ion_auth->logged_in()):

        redirect('users/login/');

    else:
Do you have this in every single controller method? If so, there is a MUCH easier way to do this. Have a look at http://philsturgeon.co.uk/news/2010/02/C...ing-it-DRY


Messages In This Thread
Problem validating start and end dates with call back - by El Forum - 03-24-2011, 06:37 AM
Problem validating start and end dates with call back - by El Forum - 03-24-2011, 06:46 AM
Problem validating start and end dates with call back - by El Forum - 03-24-2011, 07:14 AM
Problem validating start and end dates with call back - by El Forum - 03-24-2011, 07:22 AM
Problem validating start and end dates with call back - by El Forum - 03-25-2011, 03:30 PM
Problem validating start and end dates with call back - by El Forum - 03-29-2011, 11:36 AM
Problem validating start and end dates with call back - by El Forum - 03-29-2011, 12:03 PM
Problem validating start and end dates with call back - by El Forum - 03-29-2011, 12:11 PM
Problem validating start and end dates with call back - by El Forum - 03-29-2011, 02:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB