Прохождение автризации

This commit is contained in:
CORP\phedor 2018-04-23 11:18:53 +03:00
parent aaa9c2e1bf
commit c2b9254fd0
9 changed files with 16 additions and 14 deletions

View file

@ -11,6 +11,7 @@ use ctiso\View\View,
class Composite extends View
{
private $tal;
public $config;
function __construct($file)
{
@ -18,7 +19,7 @@ class Composite extends View
$this->tal = new PHPTAL($file);
$this->tal->setPhpCodeDestination(PHPTAL_PHP_CODE_DESTINATION);
$this->tal->setEncoding(PHPTAL_DEFAULT_ENCODING); // PHPTAL_DEFAULT_ENCODING !!
$this->tal->setEncoding(PHPTAL_DEFAULT_ENCODING);
$this->tal->setTemplateRepository(PHPTAL_TEMPLATE_REPOSITORY);
$this->tal->setOutputMode(PHPTAL::HTML5);
$this->tal->stripComments(true);
@ -39,7 +40,6 @@ class Composite extends View
function execute()
{
parent::execute();
// postProcess
return $this->tal->execute();
}