Hello!
I've a problem with some callbacks in a controller.
My function in the controller:
function crud_cursos(){
$crud = new grocery_CRUD();
            $crud->set_theme('flexigrid');
            $crud->set_table('cursos');
            $crud->set_subject('curso')->set_language('spanish');
            $crud->columns('id_deporte_curso', 'fecha_inicio_curso', 'fecha_fin_curso', 'nivel_curso', 'inscritos_curso', 'max_inscritos_curso', 'estado_curso', 'id_monitor_curso', 'precio_curso');
            $crud->display_as('fecha_inicio_curso', 'Fecha de inicio')->display_as('fecha_fin_curso', 'Final del curso')->display_as('nivel_curso', 'Nivel')
                    ->display_as('inscritos_curso', 'Alumnos inscritos')->display_as('max_inscritos_curso', 'Número de plazas')->display_as('estado_curso', 'Estado')
                    ->display_as('id_monitor_curso', 'Monitor')->display_as('id_deporte_curso', 'Deporte')->display_as('precio_curso', 'Precio total');
            $crud->add_fields('fecha_inicio_curso', 'fecha_fin_curso', 'nivel_curso', 'max_inscritos_curso', 'id_deporte_curso', 'id_monitor_curso');
            $crud->edit_fields('fecha_inicio_curso', 'fecha_fin_curso', 'nivel_curso', 'inscritos_curso', 'max_inscritos_curso', 'id_deporte_curso', 'id_monitor_curso');
            $crud->set_relation('id_monitor_curso', 'usuarios', '{nombre_usuario} {apellido1_usuario} {apellido2_usuario}', array('tipo_usuario' => 'Monitor'));
            $crud->set_relation('id_deporte_curso', 'deportes', 'nombre_deporte');
            
            $crud->callback_after_insert(array($this, '_rellenar_url_curso'));
            $crud->callback_after_update(array($this, '_actualizar_url_curso'));
            
            $output = $crud->render();
}
When i add a course and click the button save or save and back, the course is added in the database but the callback doesn't work. If I comment the callbacks, the crud works fine.
I wrote on the callback:
var_dump($post_array); die();
but don't happen anything. The crud doesn't call the callback function.
In others controllers i have some callbacks and work fine.
The console produce this output:
[attachment=862:error_crud_cursos.png]
Thanks and sorry for my poor english.
