⚠ 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

Problem with set_relation



joseextremo
  • profile picture
  • Member

Posted 08 February 2018 - 17:54 PM

Hi, in first tiem, sorry for my english hehe.

 

I have a poblem with the function set_relations, i need show a client table and a table for user, pass and rol for the clients, they are two relation tables (clientes and claves), this is my code:

$crud = new grocery_CRUD();
 
$crud->set_table('clientes');
$crud->set_subject('Clientes');
$crud->set_relation('id', 'claves', '{usuario} {rol}');

$output = $crud->render();

The problem is that the code only show de columns of clientes, but not show the columns 'usuario' and 'rol'.

 

Please help me. Thank you very much.


joseextremo
  • profile picture
  • Member

Posted 16 February 2018 - 08:23 AM

¿¿¿???