<a data-toggle=»tooltip» data-placement=»top» data-original-title=»Borrar» class=»tred ajaxdelete mar» rel=»B_AULA-_<?= $existe[‘course_aula_id’]?>» href=»delete»>
<i class="icon-remove"></i>
</a>
En la carpeta ajax utilizamos un helper llamado delete.php
case ‘B_AULA’:
$q = "UPDATE cl_courses_x_aulas SET publish = 0 WHERE course_aula_id = $data[1]";
Sql::execute($q);
$r = ['status'=>'success'];
break;