Welcome Guest, Not a member yet? Register   Sign In
Re-Direct vs Load View - Help Please!
#1

[eluser]Hayezb[/eluser]
Hello!

I'm fairly new to CodeIgniter and I'm having some issues with re-direct vs loading my view when a form is submitted successfully and/or unsuccessfully. I want to use view, because with re-direct I'm having to put all my validation errors and POST data in sessions which is very annoying.

Here's a break down of the user process...

1.) User selects a company from a data table.
2.) User chooses to Add Location for this company and the form opens up with following URL: http://virtue-dev/administration/vendors/add_vendor_location/2

How do I load this view without having to do a re-direct?

Will not work:
Code:
$this->load->view('administration/header');
$this->load->view('administration/vendors/add_vendor_location/ID Goes Here');
$this->load->view('administration/footer');

I get the following error:
Code:
Unable to load the requested file: administration/add_vendor_location/2.php







Messages In This Thread
Re-Direct vs Load View - Help Please! - by El Forum - 02-24-2014, 02:43 PM
Re-Direct vs Load View - Help Please! - by El Forum - 02-24-2014, 05:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB