EDIT:Problem
mysteriously solved.
I swapped out my controller and model files using the sample code at the APRESS site, and it fixed things. The weird thing is, a character-by-character comparison of the bad files vs. the good - and they are identical. every semicolon, every character exact.
I usually type from the book. But on a couple of occasions, I've copied and pasted from the PDF, in moments of laziness. Still looks the same - but my guess is there's some invisible control characters in the PDF that puts everything out of wack.
Just a heads-up to all those copying-and-pasting from the PDF version of the book!!!!
original message:<hr />
I'm going through the entry-level chapters of David's book. Things are working swimmingly. I'm loving CakePHP...
...suddenly, simple database updates give me blank pages, showing nothing except the query info.
See my working cake install here:
removedAll the views look OK for the various controllers:
http://domain.com/users/http://domain.com/posts/etc. but when I try to
update I get nothing. Actually the database gets successfully updated. Just, the page doesn't load.
Now, the confusing thing is that this worked fine for a couple days. Then suddenly stopped working for no apparent reason.
So I reinstalled Cake. Same thing. Tried it in my top level directory, tried it in a subdirectory.
I decided it was something screwy with my web host - so I installed in on my macbook using MAMP. Same thing there too.
Can anyone guess what's going wrong? I'm dying to learn CakePHP, but just can't get the basics working right. Any suggestions would be greatly appreciated. Thanks, Matthew