⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Parent child



jakjothi

jakjothi
  • profile picture
  • Member

Posted 08 January 2013 - 14:11 PM

function get_category()
{
$crud = new grocery_CRUD();


$crud->set_theme('datatables');
$crud->set_table('t_category');
$crud->display_as('parentId','Parent Name');
$crud->set_subject('Category');

$crud->set_relation('parentId','t_cat_parent','parentName');
$output = $crud->render();
$this->category_output($output);
}

sorry for my poor english,
It shows the dropdown menu perfectly..

but when i insert the t_cat_parent table value will not insert the category name into parentName field please help me..thanks