mini\Template\Renderer
class
Documentation
Default template renderer with inheritance support
Supports multi-level template inheritance via $this->extend() and $this->block(). Uses the views path registry to locate template files.
Template inheritance example:
// child.php
<?php $this->extend('layout.php'); ?>
<?php $this->block('title', 'My Page'); ?>
<?php $this->block('content'); ?><p>Content here</p><?php $this->end(); ?>
// layout.php
<html><head><title><?php $this->show('title', 'Untitled'); ?></title></head>
<body><?php $this->show('content'); ?></body></html>
Inheritance
Implements:
mini\Template\RendererInterface
Methods (2)
Find and include stacked _viewstart.php files for a template path
Documentation missing