Пример #1
0
 function __toString()
 {
     $file = trim($this->contents, "\"'");
     $include = new TemplatePHP($file, true, $this->compress);
     return $include->render();
 }
<?php

require_once 'heranca.php';
$template = new TemplatePHP();
$template->assign('nome', 'charles');
$template->render('nome.php');