Welcome Guest, Not a member yet? Register   Sign In
Your Recommended Way Of Handling URI Segments? And Why?
#1

[eluser]mdvaldosta[/eluser]
I'm wondering what YOUR recommended way of handling uri segments, and WHY? I've always used something like:

Code:
function items($action = NULL, $id = NULL)
{
    if($action == 'add')
    {
        // Add new item
    }
    elseif ($action == 'edit' && $id != NULL)
    {
        // Edit item
    }
    // etc. etc.
}

But was considering using uri segments or _remap but didn't want to change if it was just a coding style preference. Just wondering what others are using and why they were doing it that way. Code examples are a plus.


Messages In This Thread
Your Recommended Way Of Handling URI Segments? And Why? - by El Forum - 12-23-2010, 01:49 PM
Your Recommended Way Of Handling URI Segments? And Why? - by El Forum - 12-23-2010, 05:03 PM
Your Recommended Way Of Handling URI Segments? And Why? - by El Forum - 12-23-2010, 08:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB