Hello GC masters, im trying to use the add form only of the GC. I tried the example given from the API. here's my code
function testing(){
$mycrud = new grocery_CRUD();
$mycrud->set_table('employee');
$mycrud->set_theme('datatables');
$mycrud->unset_list();
try{
$mycrud->render();
//$this->load->view('crud',$output);
} catch(Exception $e) {
if($e->getCode() == 14) //The 14 is the code of the "You don't have permissions" error on grocery CRUD.
{
redirect('hrmo/testing/add');
}
else
{
show_error($e->getMessage());
}
}
}
when i run the controller testing on my url box it properly redirects me to the add function but nothing appears on my screen.. i am expecting to see the add employee form.
please help. thanks