⚠ 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

set_relation from multiDB



only4viciu

only4viciu
  • profile picture
  • Member

Posted 23 October 2013 - 16:22 PM

I guys,

 

I have this code,

public function vehicles()
{
$this->db = $this->load->database('vehicledb',true);
$crud = new grocery_CRUD();
$crud->set_table('vehicle');
$crud->columns('vehicleid','motorid','name','size');
$crud->set_relation('motorid','motor','designation');
$output = $crud->render();
$this->_vehicle_output($output); 
}

but i can't set_relation from table "motor" because, this table is in another database (motordb).

 

It's possible to do this?


engr zardari

engr zardari
  • profile picture
  • Member

Posted 23 October 2013 - 20:55 PM

hi

 

 

No this is imprecticle... and impossible. if it is than let me know please.