i cant understand the
3. use the callback_age within callback_column?
this is my code now
$crud->columns('name','bday','age');
$crud->callback_column('age',array($this,'callback_age'));
function callback_age($value, $row)
{
$diff = abs(strtotime(date('Y-m-d')) - strtotime($value));
$years = floor($diff / (365*60*60*24));
return $years." years Old";
}
when i try this $crud->callback_column('bday',array($this,'callback_age')); i dont have problem its correct
but i want is to view the compputed bday to age column
my only problem is to view the age on the age column...