⚠ 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

add another id on uri



Tomexsans
  • profile picture
  • Member

Posted 25 December 2012 - 15:24 PM

when hovering a button on the table the link goes
..codeigniter/index.php/examples/customers_management/edit/1


question how to insert another id on the uri of the link like
..codeigniter/index.php/examples/customers_management/edit/1/1


basically i need to pass on two ids on the function like?



function customers_management($id_1 = NULL, $id_2 = NULL)
{
$crud = new grocery_CRUD();

$crud->set_table('customers');
$crud->columns('customerName','contactLastName','phone','city','country','salesRepEmployeeNumber','creditLimit');
$crud->display_as('salesRepEmployeeNumber','from Employeer')
->display_as('customerName','Customer Name')
->display_as('contactLastName','Last Name');

$crud->set_subject('Customer');
$crud->set_relation('salesRepEmployeeNumber','employees','lastName');


$output = $crud->render();

$this->_example_output($output);
}


1.) How can i use the two id that i have passed onto the function?,
2.) Is this possible also upon querying? where two ids at the same time can be put on the link?

Tomexsans
  • profile picture
  • Member

Posted 27 December 2012 - 12:42 PM

Bump