[eluser]searain[/eluser]
In the samples of the user guide.
Success or fail, the "form" controller loads the different view.
But what I want to use is this way.
1) the current controller "form" will submit to another controller.
2) in that controller, I would do the form validation.
3) if validation fail, redirect back to the previous controller, "form".
This way, I have two issues.
1) first the error message display, I would need to use set_flashdata to pass the validation errors.
But
2) how could I repopulate the the form data if when fail I redirect it back to the previous controller, "form"? use session?
Thanks!