I googled, of course, and I find about a million different examples, but nothing that explains what's going on. Perhaps someone could show me a good tutorial or article?
I've got a bunch of basic classes made. And I think I'm at the point now where I need a request mapping system (if that's even what it's called).
I want a single point of entry.. ie (index.php?page=xxx).. I'll chop this later using a rewrite rule
My personal thinking goes something like this:
Code: Select all
require 'path/to/request.php';
$request = new request();
if ($request->isValidRequest($_GET['page']))
{
$request->dispatch($_GET['page'];
}Is this how it's usually done? After I get the front controller made, do I need a sub controller for each page?