I have a Controller named Author. Inside the controller, I have defined a submit function that takes care of the 3-step form process. Right now I have only created the first form.
class Author extends CI_Controller {
public function index() {
}
public function submit() {
$this->load->view('author/submit_step1');
}
}
The form1 that is loaded in the view points to the URL (action)
http://localhost/zabjournal/Author/submit/2
My objective is to save the values of the first form to a database, and then load the 2nd form.
Given the action of the form, How should I design the controller so that I can access a model and save the details of the first form, and then load the view for the 2nd form.
You could do something like this: