增加_get _post _put _request _session _cookie _server _globals一些有用的方法
并支持参数过滤和默认值,例如:
$this->_post(‘name’,’h’); 等效于 h($_POST[‘name’]);
$this->_get(‘id’,’intval’,0); 等效于 intval($_GET[‘id’])
如果没有传入过滤方法 则采用惯例配置默认配置的方法 由DEFAULT_FILTER设置(默认为htmlspecialchars)
因此 $this->post(‘name’); 等效于 htmlspecialchars($_POST[‘name’]);