Welcome Guest, Not a member yet? Register   Sign In
Multiple Level URLs?
#5

[eluser]JayTee[/eluser]
[quote author="jdfwarrior" date="1235988770"]call me crazy, i think hes referring to functions. the first step is the controller, second is which function in the controller, third and on are variables passed[/quote]
jdfwarrior, you're crazy

I guess I didn't read the post closely enough. If you **really** wanted to have sub-controllers/functions like the OP describes - it seems a bit silly. But to answer the question; I guess one way would be to treat the parameters as part of a redirect:

URL: http://www.example.com/controller1/metho...r2/method2

Controller1:
Code:
//in this case, would redirect the user to http://www.example.com/controller2/method2
function method1()
{
  $controller = $this->uri->segment(3);
  $method = $this->uri->segment(4);
  redirect($controller.'/'.$method);
}


Messages In This Thread
Multiple Level URLs? - by El Forum - 02-28-2009, 08:31 PM
Multiple Level URLs? - by El Forum - 02-28-2009, 08:52 PM
Multiple Level URLs? - by El Forum - 03-01-2009, 12:41 AM
Multiple Level URLs? - by El Forum - 03-01-2009, 10:12 PM
Multiple Level URLs? - by El Forum - 03-01-2009, 10:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB