Прохождение автризации
This commit is contained in:
parent
aaa9c2e1bf
commit
c2b9254fd0
9 changed files with 16 additions and 14 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue