@titu i try the code but there is a problem in
$('#editFrame').attr('src',$(this).attr('href'));
it seems like it's redirecting to my table inside the iframe. when i look at the chrome's firebug, in the url, it doesn't give a value to the "id" to be edited and viewed.
ex:
dev.example.com/InfoTable/edit/undefined
also as the view using this code that you replied on one of the topics here:
$(".editBtn").click(function (e) {
$('#editFrame').attr('src',"/InfoTable/edit/"+$(this).data('resident_id'));
e.preventDefault();
});
btw, i get rid of the removal of header and footer inside the modal by making new .php file as a view file for crud operations(add,edit,view.delete) with generating js and css inside the my crud controller.