how can I to perform this operation?
this->datatables->select('first_name','roll_num')
-> from('students')
-> add_column('cancel',anchor("cancel/<first_name>/<roll_num>", 'Delete', array('onClick' =>"return confirm('Are you sure you want to delete?')")));
I need to pass first_name
and roll_num
for this one. How to pass these arguments into anchor.
Thanks for the help!
actually i am able to do it using ->add_column('cancel','Delete,','first_num',roll_num');
but since i want a yes/no conformation I want the above syntax .... Is there any other way to add yes/no conformation to it