Saturday, November 28, 2009

Re: RequestHandler: sometimes IsPut not working, why?

the form helper defaults to post, so maybe trying:

$form->create('User', array('action' => 'edit','type'=>'put'));

may work.

On Sat, Nov 28, 2009 at 12:00 PM, DigitalDude <e.blumstengel@googlemail.com> wrote:
Hey,

sometimes I have the problem that no matter what I'm doing the
RequestHandler does not work with put-requests.

When I create the form, and set the form to like

$form->create('User', array('action' => 'edit'));
....

When I send the form, the RequestHandler does not work with IsPut, but
instead when using IsPost everything works fine.

Why is that happening? What's the thing I'm missing here that the form
won't work as a put-request, but without a problem with a post-
request?

Regards,

DD

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

No comments: