Codeigniter Custom Delete With Bootstrap Model

Codeigniter Custom Delete With Bootstrap Model

GrigoreGrigore Posts: 15Questions: 4Answers: 0
edited March 2015 in Free community support

I'm trying to create a custom delete that will use bootstrap model.

I have added at script :

 {
     data: null,
     className: "center",

     // this will call a function in controller and open the model but my problem is sending the ID ( $id ) of the row to the function
     defaultContent: '<a href="<?php echo site_url("model/delete/$id"); ?>" class="editor_remove" data-toggle="modal" data-target="#myModal">Delete</a>'
},

and to html :
<th>Delete</th>

Webpage :
www.my-web-projects.com/ajax

Answers

  • GrigoreGrigore Posts: 15Questions: 4Answers: 0

    I have look over DT_RowId but still with no luck ..

  • GrigoreGrigore Posts: 15Questions: 4Answers: 0

    Any ideas if this can be done ?

This discussion has been closed.