how to redirect to welcome controller without removing validation_errors (); |
[eluser]my9006ci[/eluser]
[quote author="daelsepara" date="1276267798"]you can use session flashdata: Code: $this->session->set_flashdata('validation_errors', 'put the error message here'); in your welcome controller: Code: if ($this->session->flashdata('validation_errors')) $data['validation_errors'] = $this->session->flashdata('validation_errors'); in your welcome views: Code: <?php if (!empty($validation_errors)) print "<div class = \"error\">$validation_errors</div>\n"; ?> good idea @daelsepara thanks |
Messages In This Thread |
how to redirect to welcome controller without removing validation_errors (); - by El Forum - 06-11-2010, 03:00 AM
how to redirect to welcome controller without removing validation_errors (); - by El Forum - 06-11-2010, 03:49 AM
how to redirect to welcome controller without removing validation_errors (); - by El Forum - 06-11-2010, 04:42 AM
how to redirect to welcome controller without removing validation_errors (); - by El Forum - 06-11-2010, 08:06 PM
|