The incoming URL:
http://examples.phpaddiction.com/urlrouter/part_3/test/badfunction
is parsed by the Axial_UrlInterpreter to obtain an Axial_Command object.
Axial_Command Object
(
[Name] => test
[Function] => badfunction
[Parameters] => Array
(
)
)
The command object is then passed to Axial_CommandDispatcher which loads the appropriate controller and function.
Click on the following links to see the results of various commands.
Root - The default controller
Test Controller - Call to the function _default() in the testController with no parameters
Test Controller - dostuff() A call to the function _dostuff() in the testController with parameters
Error Controller Called when an attempt to load a non existant controller is made.
Test Controller - error() Called when an attempt is made to call a nonexistent function on a controller.
Command Results:
An attempt to access a non-existant controller or function was made.
Controller:
test
Function:
badfunction