set_relation 1:n
how do I relate more 2 tables with $ crud-> set_relation (string field_name, string related_table; string related_title_field; [mix where_clause = 'null'], [order_by = 'null'])
My example does not work, as I do? thanks
$ crud-> set_relation ('mo_id_modelo' ;' tb_modelo ';' mo_descripcion'; '[[color=#ff0000][b]tb_modelo.ma_id_marca=tb_marca.ma_id[/b][/color]]'; [order_by ='null '])
I need a examples please , thanks
set_relation 1:n
Started by rteranm, 09 July 2012 - 20:44 PM
- Single Page
Posted 09 July 2012 - 20:44 PM
Posted 10 July 2012 - 09:56 AM
Hi, rteranm!
You can find perfect examples at the set_relation page. For more info about Grocery CRUD functions follow this link. Hope it will usefull for you.
You can find perfect examples at the set_relation page. For more info about Grocery CRUD functions follow this link. Hope it will usefull for you.