Gets the current request object, or the first one.
public static getRequest ( boolean $current = false ) : CakeRequest | null | ||
$current | boolean | True to get the current request object, or false to get the first one. |
return | CakeRequest | null | Null if stack is empty. |