Welcome Guest, Not a member yet? Register   Sign In
Split form in many pages... better way?
#18

[eluser]henry178[/eluser]
In controller 1:


Code:
data for the view...


if ($this->form_validation->run() == FALSE)
    {
    
    $data['content'] = $this->load->view('form_part_1', $data, TRUE);  
  
    $this->load->view('form_registration1', $data);
    
    }
    else // FORM 2 * ** *
    {

    
    "model for save my data with last insert id"
    
    $data['content'] = $this->load->view('form_part_2', $data, TRUE);
    
    $this->load->view('form_registration1', $data);
    
    }


In controller 2: //last controller called from the action form
Code:
data for the view...

if ($this->form_validation->run() == FALSE)
    {
    
    $data['content'] = $this->load->view('form_part_2', $data, TRUE);  
  
    $this->load->view('form_registration1', $data);
    
    }
    else // FORM 2 * ** *
    {

    
    "model for save my data"
    
    $data['content'] = $this->load->view('form_part_3', $data, TRUE); //confirm page
    
    $this->load->view('form_registration1', $data);
    
    }




but so I must repeat in controller 2 the same code of controller 1; is it correct?








Messages In This Thread
Split form in many pages... better way? - by El Forum - 07-02-2012, 08:16 AM
Split form in many pages... better way? - by El Forum - 07-02-2012, 08:30 AM
Split form in many pages... better way? - by El Forum - 07-02-2012, 08:55 AM
Split form in many pages... better way? - by El Forum - 07-02-2012, 09:39 AM
Split form in many pages... better way? - by El Forum - 07-02-2012, 11:01 AM
Split form in many pages... better way? - by El Forum - 07-02-2012, 11:21 AM
Split form in many pages... better way? - by El Forum - 07-02-2012, 11:25 AM
Split form in many pages... better way? - by El Forum - 07-02-2012, 11:54 AM
Split form in many pages... better way? - by El Forum - 07-02-2012, 11:59 AM
Split form in many pages... better way? - by El Forum - 07-02-2012, 12:23 PM
Split form in many pages... better way? - by El Forum - 07-03-2012, 12:21 AM
Split form in many pages... better way? - by El Forum - 07-03-2012, 01:08 AM
Split form in many pages... better way? - by El Forum - 07-03-2012, 02:03 AM
Split form in many pages... better way? - by El Forum - 07-03-2012, 02:04 AM
Split form in many pages... better way? - by El Forum - 07-03-2012, 09:21 AM
Split form in many pages... better way? - by El Forum - 07-03-2012, 10:52 AM
Split form in many pages... better way? - by El Forum - 07-03-2012, 11:28 AM
Split form in many pages... better way? - by El Forum - 07-06-2012, 02:59 AM
Split form in many pages... better way? - by El Forum - 07-06-2012, 01:01 PM
Split form in many pages... better way? - by El Forum - 08-18-2014, 09:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB