Is Uri::segment() the recommended way to retrieve controller parameters?
If so, are there any suggested "best practices" to make the code a bit more readable than just writing something like Uri::segment(3)?
On the one hand it's definitely simple and fast.
On the other hand it's less clear from the code (especially when there are multiple parameters) than either GET or POST where you identify the parameter by name.
Thanks for any suggestions!
Advanced routing looks neat; the only quibble I might have is the "global" nature of specifying such routes in the config file, but maybe that's a good thing. Anyway it definitely gets me named parameters so I will try that.
I assume I should still check if (!empty($this->param(..))) like calvinfroedge suggested...
The answers were very helpful. I did RTFM but didn't come across this. I forgot I could google-search the docs, though.
I wish there was a "basic questions" area. I'm not just learning FuelPHP but learning framework-based programming along the way, so some dumb questions are inevitable...
Thanks to both of you for the help, much appreciated!