Table 't1':
id, name
Table 't2':
id, t1_id, code, nameto
exaple
$crud->set_relation_n(array('code', 'name'),'t2','t1', array('t1.id' => 't2.t1_id'));
, where:
array('code', 'nameto') - needed fields. But if array() - is empty, then we got all fields.
and then we can get fields from this table like that:
$crud->columns('id', 'name', 't2.code', 't2.nameto');
it would be great if you implement this functionality !!! )