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()
Hmm... it doesn't look like that's my problem. but I did start tracing
line 805 in the save() function in model_php5.php. I think the problem
is line 652 in the hasField() function:
if ($this-_tableInfo != null) {
Somehow ($this-_tableInfo != null) evaluates to false. I changed the
condition
I'm new to Cake and I've been following the blog tutorial. Everything
seems to work fine as I've been able to view and delete posts.
However, nothing happens when I click 'Save' on the form page for edit
or add post. (I just get the form back.)
I couldn't find any error in my code, so I
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.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google