I reiterate last week’s post about CakePHP: the documentation sucks. They do not put nearly enough emphasis on troubleshooting, because for most adopters of the framework, setting up your first working app is rarely a straight shot.
Case in point. It took a week of research to pick up an important point: if any one of four .htaccess files are missing, bits of your CakePHP app will not work. Not might…will. For me, the symptom was broken CSS: the HREF in
pointed to nowhere, and nothing existed to forward it to a valid location.
Unfortunately .htaccess files tend to disappear easily, especially when manipulating directories. Filenames beginning with ‘.’ do not show up, so simple drag-and-drop operations from an operating system’s GUI leaves out .htaccess because you can’t see it.
Good news is in store, though. Working through this tutorial set me straight, and I have a flawless application once again.
Tags: php, programming
I had a problem with dropping hidden files as well (mine were .gitignore files). It seems that there are two solutions: use terminal (mv original_folder new_folder) or stop hiding your hidden files (http://dyor.com/hWZc1T shows you how to do this…not easy, but worth it). Good article. Thanks.