Re: POST and PUT problems on add action

2013-04-26 Thread Mancho
I agree, that is a correct way to solve. Check this site: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html Murgan, Alexis Germán Desarrollador & Diseñador Web: german.murgan.com.ar Email: ger...@murgan.com.ar MSN: ger...@murgan.com.ar Móvil: +5493424663813 2013/4/26 André Luis > Yes, its

Re: POST and PUT problems on add action

2013-04-26 Thread André Luis
Yes, its the correct way to solve... POST is when you are creating a new record, and PUT is when you are updating a record... *¹ Cake doesnt uses really the PUT method, but a hidden field with the method. (I think it´s because most browsers doesnt support PUT method) *² When a validation error

POST and PUT problems on add action

2013-04-26 Thread Martin Aguilar
I'm new to cakephp and I'm start loving it but today I had a problem on adding new data (action add). After baking users table the result was public function add() { if ( $this->request->is('post') ) { I had add some validation on my model to names and more fields. The first push on submit bu