yaf系列学习之八:获取get或post请求的参数值

yaf框架可以通过$this->getRequest()判断当前请求,$this->getRequest()中封装了判断请求类型、文件上传、获取当前请求url、获取cookie等操作。 下面举几个例子: 1.yaf判断当前是否为get请求: if($this->getRequest()->isGet()) echo "当前是get请求"; 2.yaf判断当前是否为post请求: if($this->getRequest()->isPost()……