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

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();
}

View file

@ -120,7 +120,7 @@ class Top extends Composite {
$this->set('deps', implode(",", array_values($this->require)));
$this->set('title', $this->getTitle());
$this->set('jspath', enableHttps($this->config->get('system', 'web')));
$this->set('jspath', $this->config->get('system', 'web'));
//
return $this->execute(); // execute+phptal ??
}

View file

@ -205,4 +205,4 @@ class View
}
return $result;
}
}
}