⚠ 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

magazine id is saving in database instead of magazine name



dhoni223

dhoni223
  • profile picture
  • Member

Posted 15 March 2018 - 05:59 AM

when i select magazine name from dropdown that magazine id is saving in database  i want tostore magazine name
public function newsubscriber()
    {
$crud = new RMCL_grocery_CRUD();
        $crud->set_theme('bootstrap-v4');
        $crud->set_table('wp_rmcl_pub_subscription');
$crud->set_subject("_subscription");
$crud->display_as('magazine_name','magazine_name');
        $crud->set_relation('magazine_name','wp_rmcl_pub_magazine','magazine_name');
        $crud->callback_column('subscriber_name',array($this,'_callback_active_state'));
        $output = $crud->render();
$this->addData('output', $output);
        $this->render('app/crud_view');   
    }