Issuing a parameter via a URL == issuing a parameter via query strings

kohana

Is issuing a parameter via a URL the same as issuing a parameter via query strings? (in Kohana)

Here is the example:

verify.php?uid=5&token=TOKEN

Is the above that code the same as below this code?

verify/5/TOKEN

Best Answer

In Kohana "issuing a parameter via a URL" will show up as a parameter to your controller function. "Issuing a paramter via query strings" is available via the input library

If the parameter is core to the identity of your resource... keep it in the url. Example: www.example.com/our/presidents/Barack_Obama

Your controller code controllers/our.php

class Our_Controller {
    public function presidents($full_name)
    {
        ...
    }
}
Related Topic