Biny
Biny copied to clipboard
关于Restful的使用?
按照wiki文档测试: 1、GET方法没有问题;
2、POST_test()会提示错误Fatal error: Method [GET_test] not exists in [app\controller\restAction] in 。。。
默认方法都是"GET_"吗,弄不明白?
restful的method 是http请求的method 你用工具提交的时候有get请求post请求 另外还有option put delete这些 路由名就是根据这个method做的前缀进行的转发
好的