Jump to content


magazine id is saving in database instead of magazine name

php grocerycrud

  • Please log in to reply
No replies to this topic

#1 dhoni223

dhoni223

    Member

  • Members
  • PipPip
  • 13 posts

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');   
    }

 







Also tagged with one or more of these keywords: php, grocerycrud

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users