Hello All -
I've been around the web a few times on this question but the router vs dispatcher role is still not completely clear to me.
The reason I'm asking is that I'd like to build a router and a dispatcher class just for practice but, obviously, I need to know what the job of each is.
So, from what I understand, a...
Router take a uri or post request, breaks the request apart and then returns the result as an array, while a...
Dispatcher takes the router array and grabs appropriate parts of a database table based upon the various array indexes.
While the above seems like the logical role for each object, this description also seems overly simplistic so I must be missing something (or a lot of things... aren't I?).
Can anyone please fill in the blanks for me about the full role a router and dispatcher plays in an application framework?
Thanks to all in advance!