I’ve been using Comb with a few more projects recently. The main point of Comb is to structure the code in such a way that the request handlers get accessed directly via Apache, as opposed to rewriting the entire URL, and making PHP dynamically include or instantiate a request handling class (i.e. Action, Command, etc).
For example, you might have a registration form that is accessed like this (pseudo-HTTP):
1 2 3 4 5 | # display the registration page... GET /register.php # registration form submits to... POST /proc_register.php |
I personally hate that naming convention because it reminds me of how I wrote code 5 years ago, and it’s just plain ugly.
Here’s a cleaner, friendlier approach that I’d rather use:
1 2 3 4 5 | # display the registration page... GET /register # registration form submits to... POST /register |