ccampbell / sonic

fast, lightweight PHP 5.3 MVC framework
http://www.sonicframework.com
Apache License 2.0
63 stars 11 forks source link

Add ability to get combined parameter in Controller #13

Open ccampbell opened 12 years ago

ccampbell commented 12 years ago

Right now when you call $this->request()->getParam('whatever') in a controller it defaults to getting the router param or the param passed into the controller from another view/subview. You would do $this->request()->getParam('whatever', Request::GET) to get a parameter from $_GET etc.

It would be nice if there was some method that combined $_GET, $_POST, and router/controller variables together into a single method so you could just access any variable name without caring about where it came from.