Add to delicious
Add to technorati
Add to technorati
Digg it
furl
Yahoo

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthori93
    • CommentTimeDec 31st 2009
     # 1

    http://www.m1k3.net/lab/framefront/how/
    I read this manual but I still don't know how to use multiple level deep URL's.

    I built into Framefront an alternative to $_GET[], called $get[]. You will use numbers 1,2,3,4,ect to access the depth of the url. $get[1] will ALWAYS be your view, then from there you will use $get[2], $get[3], $get[4], ect. to control things from there.

    So, in our example above, team is accessed by using $get[1], and michaeldick is accessed by using $get[2].

    Could you give me an example of that?

    • CommentAuthorevN
    • CommentTimeJan 14th 2010
     # 2

    In terms of PHP logic, you would do something like this... Your "views" directory holds the PHP for many pages. For instance, if you have the file "logic.php" inside of your views directory, accessing it like http://www.yoursite.com/logic/ would make sense.

    Framefront by default creates the $get[1] variable that points to "logic" in the URL. The reason you would use the $get array, is when using a switch. Say the page logic.php has multiple options... while you would normally switch that through $_GET[] (note the difference between $get) like logic.php?option=hello

    With framefront, you could simply do "http://www.yoursite.com/logic/hello/" and in your PHP, simply include a switch or if-else statement

    if($get[2] == "hello") , then do this

    or

    switch($get[2]) {
    case "hello":
    ...

    And so on. I hope this helped.