0

I'm using cakephp, and I've run into a very strange thing. My form is setup to use a post method, but is using put automatically. Has anyone else come across this? How do I fix this? Why is this happening?

4

1 回答 1

0

这是由当前记录 id 字段的包含或遗漏引起的。如果您包含一个 id,表单会自动变为“编辑”,如果没有 id,它将是一个“创建”

于 2013-01-08T16:47:00.553 回答