Jump to content


Parent child

dropdown categories

  • Please log in to reply
No replies to this topic

#1 jakjothi

jakjothi

    Newbie

  • Members
  • Pip
  • 5 posts
  • Locationchennai

Posted 08 January 2013 - 02: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

Attached Thumbnails

  • cat.png






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users