I have a form at the bottom of a long page, if the user fills out the form, but does not confirm that the page reloads in the usual encoder:
$this->load->view('template',$data);
however, because the form is down at the bottom of the page, I need a page to load there, like you, using HTML anchors. Does anyone know how to do this in an encoder?
I can not use codeigniter
redirect();
because it loses the object and the validation errors have disappeared. Other frameworks that I used as Yii, you can call the redirect function, for example:
$this->redirect();
which solves the problem because you are storing the object. I tried using:
$this->index()
inside the controller, which works fine as a redirect, but the validation errors are in another method from which the current page is loaded:
$this->item($labs)
but when i use this it gets stuck in a loop
Any ideas? I saw this question a lot on the net, but did not give clear answers. I am studying the use of codeigniter flash data, but I think this is a bit overkill.
greetings.
source share