[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.