PHPtal в autoload

This commit is contained in:
Фёдор Подлеснов 2016-09-06 15:31:36 +03:00
parent 39b371b241
commit af80a4f0ec

View file

@ -265,7 +265,7 @@ class View_Composite extends _View_Composite
function __construct($file)
{
parent::__construct($file);
require_once "PHPTAL.php";
$this->tal = new PHPTAL($file);
$this->tal->setEncoding('WINDOWS-1251'); // PHP_TAL_DEFAULT_ENCODING !!
$this->tal->stripComments(true);