Re: Form data not available in controller

2008-04-28 Thread zendrumz
Well, I tried all your suggestions over the weekend, and none of them panned out. count($_POST) tells me the post array is empty, and likewise there is nothing in $this->params['form'] or $this->data. So thanks for the help, but I now suspect the problem lies in my Apache rewrite rules. The site i

Re: Form data not available in controller

2008-04-25 Thread Amit Badkas
- Please debug the $this->params['form'] and $this->data in your controller's action and take a look at it if something is not working properly On Thu, Apr 24, 2008 at 9:49 PM, zendrumz <[EMAIL PROTECTED]> wrote: > > Hey everyone, > > I'm a cakephp newbie putting together my first project. I'm tr

Re: Form data not available in controller

2008-04-25 Thread seb
> Sorry, I just meant the error message I added in my controller (the > flash message in the else clause) i.e. cakephp doesn't think there's > anything in $this->data. In your controller, did you try this : $this->Model->create(); $this->Model->save($this->data); instead of : $this->Model->cre

Re: Form data not available in controller

2008-04-24 Thread zendrumz
On Apr 24, 12:36 pm, seb <[EMAIL PROTECTED]> wrote: > >When I submit the form, the > > > controller branches to display the error message in my view, along > > with the following: > > > 1 query took 2 ms > > Nr Query Error AffectedNum. rows Took (ms) > > 1 DESCRIBE `contacts`

Re: Form data not available in controller

2008-04-24 Thread seb
>When I submit the form, the > controller branches to display the error message in my view, along > with the following: > > 1 query took 2 ms > NrQuery Error AffectedNum. rows Took (ms) > 1 DESCRIBE `contacts` 6 6 2 Well, *which* error message ?

Form data not available in controller

2008-04-24 Thread zendrumz
Hey everyone, I'm a cakephp newbie putting together my first project. I'm trying to save form data to my database through a form generated by the formHelper in a view element. The problem I'm having is that $this- >data is apparently empty when I try to access it from my controller. I've checked