Route requests without overhead and respond as you like.
Documentation: https://hfw.github.io/site
Site
constructor takes care of general environment setup, including error handling and logging.404
or 405
error is rendered.View
instances merely include
their templates (.phtml
files).
Within the scope of those files, $this
refers to the View
instance itself. Any data given to the view is converted to variables via extract()
in the same scope as the template inclusion. Data can also be accessed via ArrayAccess
.
By convention, templates should be stored in the view
directory in the document root.