panx framework | Documentation | Template systems

Template systems

panx-framework can support custom template systems, but by default, supports only Latte. The template files are specified in routes, but loader.php will not include them as classic php files (If you will use for example blade, you will need to edit loader.php, because if file ends with .php, that files will be just required using require()). The custom extensions (meaning other then .php) needs handler.

View Handlers to see how to create custom handler.

array(3) { [0]=> string(20) "docs/v0.3/header.php" [1]=> string(30) "docs/v0.3/template-systems.php" [2]=> string(20) "docs/v0.3/footer.php" }