Do you have validatin in model ? (I guess not), but maybe try
save($this->data['Account'], null, false). That sould skip the
validation  if any...

Apart from this action, are you able to set/retrieve the data from the
database (Even in other tables) ? Have got got an index action that
just does a findAll() ? Maybe there is a problem with the db
connection ?
What are the parameters in you database.php ?

On Aug 4, 4:34 pm, pbland <[EMAIL PROTECTED]> wrote:
> Thanks Jon Bennett and frankcy06l for the suggestions. I actually did
> have:
>
> if (empty($this->data)) {
>    $this->render();
>
> }
>
> I didn't include it in my post, as I just wanted to show what I
> thought was relevant. Francky06l, in looking at the examples, I don't
> believe it's required to list Form and Html in the controller. I did
> replace the <form action> with <?php echo $form....?> and I added in
> the controller:
>
> // SAVE UNSUCESSFUL
> // validate model errors
> $this->validateErrors($this->Account);
> // pass data back to view
> $this->set('data', $this->data);
> // render form again
> $this->render();
>
> Unfortunately, it still doesn't work and I'm still not getting any
> error message. This is baffling. At first I had a lot of fields in the
> table, but I now have just first and last name to keep it simple. As
> the pr($this->data) shows, the Account array has data, but when the
> save() gets executed, I don't see any INSERT statement when I have
> debug set to 2. So it's like the save() doesn't even attempt to
> insert, but I don't know what else to check in my setup that could
> cause this.
>
> Thanks,
> Paul
>
> On Aug 4, 7:06 am, francky06l <[EMAIL PROTECTED]> wrote:
>
> > Few hints :
>
> > - in your controller you do not mention the helpers : Form, Html but
> > maybe the are in app_controller ?
> > - try to replace the <form action> with <?php echo $form-
>
> > >create(array('action' => 'create')); ?>
>
> > Hope this helps


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to