⚠ 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

crud_relation



Waqas

Waqas
  • profile picture
  • Member

Posted 18 September 2016 - 10:12 AM

Hi

I have a following script, in controller.

public function portfolio() {

$crud = new grocery_CRUD();
$crud->set_table('portfolio');

$crud->set_relation('data_filter','gallary_catagory_table','data_filter')

$output = $crud->render();

$this->get_output($output);

}

it stores the primary key of the table gallary_catagory_table in portfolio.datafilter, I require the string of that particular field name : data_filter.

actual string in data_filter which is event,management,match