I think its the FormHelper

a simple:
<?php echo $this->Form->create('User', array('id'=>'userData'));?>

results in:
<form action="/admin/members/edit/
4edeb06d-7080-4e23-8438-0fe01810f9bf" id="UserAdminEditForm"
method="post" accept-charset="utf-8"><div style="display:none;"><input
type="hidden" name="_method" value="PUT"/></div>...

so obviously it thinks this is a non-existing record
//FormHelper.php
'type' => ($created && empty($options['action'])) ? 'put' : 'post',

$created is true and $options['action'] is undefined => put...



On 8 Dez., 22:47, Miles J <mileswjohn...@gmail.com> wrote:
> What are your HTTP headers?
>
> On Dec 8, 1:44 pm, euromark <dereurom...@googlemail.com> wrote:
>
>
>
>
>
>
>
> > thats really weird.
> > happening on windows/wamp - php5.3.8
> > maybe some bug?
>
> > the firefox firebug debug data for POST reads:
>
> > Parameter application/x-www-form-urlencoded
> > _method PUT
> > data[UserInfo][country_id...    1
> > data[UserInfo][gender]  1
> > data[User][id]  4ed23d7c-dcc8-4d3b-8e7b-0fe01810f9bf
> > data[User][username]    test
>
> > so it seems to put everything by default.
> > As far as I know, POST is more generic and PUT mainly used for upload
> > etc
>
> > On 8 Dez., 21:04, Tilen Majerle <tilen.maje...@gmail.com> wrote:
>
> > > i was checking this what you said that didn't work and results
> > > checking: $this->request->is('post')
>
> > > in Google Chrome (latest): true
> > > Firefox (latest): true
> > > IE 8: true
>
> > > i'm on xampp 1.7.3 with php 5.3.5
> > > and Cake version: 2.0.4
>
> > > so problem is somewhere in your project or maybe server configuration
> > > --
> > > Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> > > 2011/12/8 euromark <dereurom...@googlemail.com>
>
> > > > For 2.0 I just changed all
> > > > if (!empty($this->data))
> > > > to
> > > > if ($this->request->is('post'))
>
> > > > But now it haunts be.
> > > > In FF8 Cakephp $this->request does say "false" after a normal post
> > > > (whereas firebug itself says it is a post)
> > > > but is('put') returns true
> > > > Same with every other browser it seems.
>
> > > > so it never saves...
> > > > whats going on?
>
> > > > --
> > > > Our newest site for the community: CakePHP Video Tutorials
> > > >http://tv.cakephp.org
> > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > > > 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
> > > > athttp://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

Reply via email to