How does it work?

At the most basic level Page Objects relies on three components to render pages, the router, a view, and objects. The router is located in index.php in the application root path while the HTML views are located in a sub-directory named views and the PHP objects are located in a sub-directory named objects.

When a page is requested from the server the router parses the URL looking for the name of the requested view and any additional parameters. The router then reads the requested view file from the views sub-directory and processes each object tag in the view by loading the appropriate PHP object from the objects sub-directory. The final page is then sent to the web browser.
How Page Objects works.