function cliente()
{
$crud = new grocery_CRUD();
$crud->set_theme('flexigrid');
$crud->set_table('cliente');
$crud->set_subject('Cliente');
$crud->required_fields('nombre','rut');
$crud->set_rules('nombre','Nombre','callback_nombre_check');
$crud->callback_column('Accion',array($this,'goSucursal'));
$crud->columns('nombre','rut','Accion');
$crud->fields('nombre','rut');
$output = $crud->render();
$this->_example_output($output);
}
with this funcion of validation
function nombre_check($str)
{
if( $str== 'test')
{
$this->form_validation->set_message('nombre_check', $str.' no es un nombre valido');
return FALSE;
}
else
{
return TRUE;
}
return $str;
}
but the message doesn’t appears, on the contrary appears this message “Unable to access an error message corresponding to your field name.â€
I use other version of grocery crud and that's works, but i need new methods to bring the latest version of grocery.
Help me Please!!
regards!