I'm still having troubles with the code in this book.
Thank you, Felgall, for the link, but I've been using the code base since page 1. I'm sure a lot of the difficulties I'm having are due to my own error, but overall this book has really dropped the ball when providing code examples the reader can work with.
Not only are there several discrepancies between the book code and the downloadable code, the author gives little to no explanation how to test the code examples.
Most of the SPL examples ran with little trouble. But now I'm on the MVC section of chapter 4 and none of the code excerpts even instruct you in which files the code should be placed.
The section starts off with code for a mod_rewrite, which I assume can only be placed in a .htaccess file. Yet there's no .htaccess file included in the codebase, as there was in the REST example.
I'm getting an Internal Server Error when testing the .htaccess.
Here's the code taken directly from the book:
My project is in wamp/www/phpmastery/patterns. I've tried placing the .htaccess back and forth between all these directories, and have also tried tinkering with the url path in the above code to match my system. I've also confirmed mod_rewrite is enabled on my server.