Re: Wrong request method (2.1.2)

2012-05-05 Thread Jimit Kapadya
Which book is best in CakePhp..

On Sat, May 5, 2012 at 9:41 AM, Miles J mileswjohn...@gmail.com wrote:

 I believe it has changed so if you are doing an edit it sends a PUT, else
 if you are doing a create it sends a POST.

 I ran into that same issue today.


 On Friday, May 4, 2012 1:17:31 PM UTC-7, SigalX wrote:

 I've seen that cake had sent PUT in the _method variable but it was
 POST and I got PUT from $this-request-method() in the controller as
 well. How to get truly request method via cake?

  --
 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+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Wrong request method (2.1.2)

2012-05-05 Thread euromark
thats why I don't care about PUT or POST:
https://github.com/dereuromark/tools/blob/2.0/Controller/Component/CommonComponent.php#L143
 

for me:
posted = put or post
get otherwise

at least in a practical sense anyway (since the one is only a more specific 
version of the other).


Am Samstag, 5. Mai 2012 08:10:43 UTC+2 schrieb Jimit Kapadya:

 Which book is best in CakePhp..

 On Sat, May 5, 2012 at 9:41 AM, Miles J mileswjohn...@gmail.com wrote:

 I believe it has changed so if you are doing an edit it sends a PUT, else 
 if you are doing a create it sends a POST.

 I ran into that same issue today.


 On Friday, May 4, 2012 1:17:31 PM UTC-7, SigalX wrote:

 I've seen that cake had sent PUT in the _method variable but it was 
 POST and I got PUT from $this-request-method() in the controller as 
 well. How to get truly request method via cake?

  -- 
 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+unsubscr...@googlegroups.com For more options, visit this group 
 at http://groups.google.com/group/cake-php




-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Wrong request method (2.1.2)

2012-05-04 Thread stork
Html form supports just GET and POST methods, thats why CakePHP (and 
others) uses workaround with _method to fake PUT and DELETE. If you 
want/need true PUT request from web browser, use XMLHttpRequest (ajax).

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Wrong request method (2.1.2)

2012-05-04 Thread Miles J
I believe it has changed so if you are doing an edit it sends a PUT, else 
if you are doing a create it sends a POST.

I ran into that same issue today.

On Friday, May 4, 2012 1:17:31 PM UTC-7, SigalX wrote:

 I've seen that cake had sent PUT in the _method variable but it was 
 POST and I got PUT from $this-request-method() in the controller as 
 well. How to get truly request method via cake?

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php