Example page for "Url Routing with PHP - Part Two"
This page contains a simple demonstation for the "Url Routing with PHP - Part Two" article. It shows a live example of how the code talked about in the article works. A download of sample code that you can use to experiment is included at the end of this page.

The incoming URL is parsed by the Axial_UrlInterpreter to obtain an Axial_Command object.
The following command array is obtained.
Axial_Command Object ( [commandName] => [parameters] => Array ( ) )

The command object is then passed to the Axial_CommandDispatcher for execution based on the command object.

Click on the following links to see the results of various commands or type some into the address bar after '.../part_2/'.
Root
Command One
Command Two
Command Two with parameters

Command Results:

Command:
    Root

Download Example