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
- 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
> 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
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`
>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 ?
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