lithium\action\Request::__get()
Allows request parameters to be accessed as object properties, i.e. $this->request->action
instead of $this->request->params['action']
.
Parameters
-
string
$name
The property name/parameter key to return.
Returns
mixedReturns the value of $params[$name]
if it is set, otherwise returns null.
Source
public function __get($name) {
if (isset($this->params[$name])) {
return $this->params[$name];
}
}