Welcome Guest, Not a member yet? Register   Sign In
how to redirect to welcome controller without removing validation_errors ();
#4

[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');
redirect('welcome');

in your welcome controller:

Code:
if ($this->session->flashdata('validation_errors')) $data['validation_errors'] = $this->session->flashdata('validation_errors');

in your welcome views:

Code:
&lt;?php if (!empty($validation_errors)) print "<div class = \"error\">$validation_errors</div>\n"; ?&gt;
[/quote]

good idea
@daelsepara thanks


Messages In This Thread
how to redirect to welcome controller without removing validation_errors (); - by El Forum - 06-11-2010, 08:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB