The condition in add function makes sense to me:
if ($this->request->is('post'))
But why does the edit function use this:
if ($this->request->is('post') || $this->request->is('put'))
and not this?:
if ($this->request->is('put'))
McS.
On Feb 1, 12:25 pm, Thiago Belem <cont...@thiagobelem.net> wrote:
> AFAIK, PUT is the POST HTTP Request version of "edit" action... when you
> send data that u want to change something (not insert) you send a PUT
> request.
>
> Att.,
> --
> ***Thiago Belem*
> Desenvolvedor
> Rio de Janeiro - RJ - Brasil
>
> +55 (21) 8865.9250
> thiagobelem.net
> cont...@thiagobelem.net
>
> *Skype / gTalk **»* thiago.belem.web
> *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*
> Assando Sites*, curso de CakePHP *»* assando-sites.com.br
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment