[color=#282828][font=helvetica, arial, sans-serif]What I'm doing wrong? In result d[/font][/color][color=#282828][font=helvetica, arial, sans-serif]ate field $date1 as word of field "periodfrom" not as date value.[/font][/color]
...
$this->grocery_crud->set_rules('periodto','Period to','callback_check_dates["periodfrom"]');
$output = $this->grocery_crud->render();
...
public function check_dates($datet2,$date1)
{
if ($datet2 >= $date1)
{
return TRUE;
}
else
{
$this->form_validation->set_message('check_dates', $datet2.' date 2 is smaller then '.$date1.' date 1.');
return FALSE;
}
}
[font=helvetica, arial, sans-serif][color=#282828]Please advise with some working example.[/color][/font]