sFire PHP Framework

Template engine: Partials

There's also a convenience method for rendering sub views within the current view. You can include other view files into your view so you won't have to write the same content in each view that uses the same content.

To do so, you may use the partial method:

@partial('partials.contact')

The view that will be included in this example is located in the "modules/YOUR-MODULE-NAME/views/partials" folder as "contact.tpl". The tpl extension is default but can be overwritten in the app.php.