Welcome Guest, Not a member yet? Register   Sign In
loading a view with an argument
#1

[eluser]garrettheel[/eluser]
Just wondering, how do you add an argument to a view when loading it? For example, in my edit function, the first argument is the id that is edited. When there is an error, I need to reload the same page they were on before.

But when I try
Code:
$this->load->view('admin/edit/1');
I get an error saying that it couldn't find admin/edit/1.php. How can i overcome this? Thanks


Messages In This Thread
loading a view with an argument - by El Forum - 12-14-2008, 07:42 PM
loading a view with an argument - by El Forum - 12-14-2008, 08:00 PM
loading a view with an argument - by El Forum - 12-14-2008, 09:15 PM
loading a view with an argument - by El Forum - 12-15-2008, 02:36 AM
loading a view with an argument - by El Forum - 12-15-2008, 03:19 AM
loading a view with an argument - by El Forum - 12-15-2008, 03:29 AM
loading a view with an argument - by El Forum - 12-15-2008, 03:45 AM
loading a view with an argument - by El Forum - 12-15-2008, 03:49 AM
loading a view with an argument - by El Forum - 12-15-2008, 03:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB