[eluser]CARP[/eluser]
I have a controller function called
add
This function has a main if, that checks if something was posted from the view's form.
Code:
if ($this->input->post('field1'))
{
...load model and insert data
$this->session->set_flashdata('msg', 'Data added!!');
redirect('controller/add','refresh');
}
else
{
...Load models, helpers, etc.
...Load view with form
}
All goes fine, when I submit the form, data is added correctly,
but the view doesn't load correctly. I mean, the models, helpers, etc. seem not to load when the else block code is called from redirect(...)
Hope you've understood me