clam schrieb:
> I had actually deleted the entire app/views/posts directory.
>
> I tried adding $name='Posts' in PostsController, and the problem
> remained :(
>
> I had also figured out earlier (before trimming all the code down to
> just the scaffold) that $this->Post->save($this->data) in the add()
> function in PostsController was returning false. Is there any way to
> get more detailed info on why save() wasn't working?
>
> On Oct 31, 7:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > Do you still have add.thtml or edit.thtml files in app/views/posts
> > directory? If so, make sure you delete them. Maybe also try var $name
> > = 'Posts'; in your PostsController.
I had exactly the same problem. My problem was that the first character
of the field Name in the array was an upper case character where as
the model name has a lower case first character :-(
The respectiv line (805) in libs/model/model_php5.php:
if ($n === $this->name) {
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---