Welcome Guest, Not a member yet? Register   Sign In
Help with full "fake" directory structure URL
#3

[eluser]jedd[/eluser]
You could also do some pretty rude things with __call(), too.

I think the problem is that you're only describing one half of what you want. Viz.

[quote author="alphane" date="1253757238"]
what if I wanted to show the pages relationship to other pages through the URL? How could I, for example, achieve something like this:

Code:
www.site.com/parent-page/child-page/even-deeper-page
[/quote]

That URL works just fine if you have a controller called parent-page, which contains a method called child-page, and child-page() knows what to do when its first parameter is a string such as 'even-deeper-page'.

Perhaps if you describe the structure you want to have in your code, and the visible effect you want to have in the URL, and how you want the two to map against each other. Avoiding the word page might help, too, as it can mean all kinds of different things.


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



Theme © iAndrew 2016 - Forum software by © MyBB