Input

\Cml\Http\Input 用来接收用户GET/POST请求数据

获取get string数据

  1. \Cml\Http\Input::getString($name, $default = null)

获取post string数据

  1. \Cml\Http\Input::postString($name, $default = null)

获取$_REQUEST string数据

  1. \Cml\Http\Input::requestString($name, $default = null)

获取get int数据

  1. \Cml\Http\Input::getInt($name, $default = null)

获取post int数据

  1. \Cml\Http\Input::postInt($name, $default = null)

获取$_REQUEST int数据

  1. \Cml\Http\Input::requestInt($name, $default = null)

获取get bool数据

  1. \Cml\Http\Input::getBool($name, $default = null)

获取post bool数据

  1. \Cml\Http\Input::postBool($name, $default = null)

获取post bool数据

  1. \Cml\Http\Input::requestBool($name, $default = null)

原文: http://doc.cmlphp.com/devintro/req_res/input.html