ccampbell/sonic — Issue #13: Add ability to get combined parameter in Controller
Author: ccampbell
Created: 2012-02-24 06:43:07+00:00
State: open
Labels: feature

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.