namespace API;
abstract class Controller_HMVCRest extends \Controller_Rest {
protected $_params = array();
public function before() {
$this->_params = \Request::is_hmvc() ? $this->request->params() : \Input::param();
parent::before();
}
public function param($name, $default = null) {
return empty($this->_params[$name]) ? $default : $this->_params[$name];
}
}
It looks like you're new here. If you want to get involved, click one of these buttons!