on top you have two tables and you can create a nice dropdown via:
$crud->set_relation('employees', 'offices', '{city} - ({country})');
BUT what if country was a relation with country_id and i want to fetch the country_name from a third table?
⚠ 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. ⚠
Posted 05 July 2013 - 12:29 PM
on top you have two tables and you can create a nice dropdown via:
$crud->set_relation('employees', 'offices', '{city} - ({country})');
BUT what if country was a relation with country_id and i want to fetch the country_name from a third table?
Posted 05 July 2013 - 12:46 PM
Then you do a custom model!