Help with full "fake" directory structure URL |
[eluser]guillermo, out of repose[/eluser]
Not all that sure I have a full grasp on what you're asking but I think the _remap() method can be put to use here. Read more about it in the user guide. If I get what you're saying, you could, in theory, have a few "parent" controllers and use the _remap() method to handle all requests that go to those parents. So: [pre]www.site.com/parent-page/child-page/even-deeper-page[/pre] could get handled by the parent-page controller, and you could do something like this: [pre] function _remap($method) { switch($method) { case "some-awesome-child": // do some stuff using uri segments case "some-other-awesome-child": // do some more stuff } } [/pre] You could even ignore the $method parameter and just do whatever you want to based on the uri segments. Essentially, again, just implement the _remap() method to handle all of your requests. |
Messages In This Thread |
Help with full "fake" directory structure URL - by El Forum - 09-23-2009, 02:53 PM
Help with full "fake" directory structure URL - by El Forum - 09-23-2009, 03:17 PM
Help with full "fake" directory structure URL - by El Forum - 09-23-2009, 04:32 PM
Help with full "fake" directory structure URL - by El Forum - 09-23-2009, 04:49 PM
Help with full "fake" directory structure URL - by El Forum - 09-23-2009, 05:07 PM
Help with full "fake" directory structure URL - by El Forum - 09-23-2009, 05:15 PM
Help with full "fake" directory structure URL - by El Forum - 09-23-2009, 05:17 PM
Help with full "fake" directory structure URL - by El Forum - 09-23-2009, 09:41 PM
|