⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. Very soon this forum will be read-only and archived. ⚠


aaries

Member Since 06 Jan 2012
Offline Last Active Jul 25 2012 04:41 PM
-----

Topics I've Started

Help with a redirect

08 January 2012 - 07:37 PM

Hi i need your help in relation to, how to redirect after insert data on this table

Attached File  15378728471a1812df04c1365ff04da77c60aa46.jpg   125.58K   1551 downloads


i want to after insert this data, it redirect to the maintaner of this table, as you can see in this picture

Attached File  1537874707136b9767041fa2dcc42d691b5728cc.jpg   126.5K   1602 downloads

I dont want to it shows this screen

Attached File  15378749cb6f19031e0b0d5de0aa8783588222d9.jpg   116.73K   1366 downloads

PLZ help!!!

regards

problem with the form_validation->set_message

06 January 2012 - 04:31 AM

Hi, i have this code for example

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!