Once the framework responsible for dispatching requests is understood, it is fairly easy to locate the code responsible for performing a certain task in order to modify or extend it. The code that delegates control to the appropriate classes has been written with extensibility in mind; that is, it should rarely need modification.
In order to find the code that handles a specific request, follow these steps:
index.php; for example, in the following URL:
UserHandler. (Page classes always end with
Handler. Also note the differences in capitalization: in the URL, lowerCamelCase is used; class names are always CamelCase.)
Pageclass in the pages directory of the source tree. In the above example, the source code is in
index.php, or, in this case,
pages/user/UserHandler.inc.php, in the function