I've been developing a site using Wildflower CMS developed using CakePHP and ran into an infuriating problem. After working on it for several weeks without issue I started receiving javascript errors that caused everything to come to a grinding halt. The errors were all reported using Firebug and the javascript debugger. The culprit:
Unterminated String Literal
After that in the Firebug console was:
$ is not defined
I knew there was a strong possibility that the first error was somehow causing the second and that top-down debugging was the way to go. After inspecting the javascript code I discovered that there was a variable assignment going on that spanned several lines. This might be legal in PHP but not javascript.



I have fallen in love with CakePHP's integration of the SimpleTest
libraries. With the type of work that I normally do, unit-testing is
hard to utilize successfully. That is to say, most of the applications
I work on have very straight-forward components and not a lot of
complex functions/methods. I would only be testing whether or not they
worked at all, rather than if they worked in a wide-array of
situations.
