Re: problem with adding and editing in blog tutorial

2006-11-10 Thread jaf
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()

Re: problem with adding and editing in blog tutorial

2006-11-10 Thread clam
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

problem with adding and editing in blog tutorial

2006-10-31 Thread clam
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

Re: problem with adding and editing in blog tutorial

2006-10-31 Thread [EMAIL PROTECTED]
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