diff --git a/src/Bixev/LightHtmlTemplate/Tpl.php b/src/Bixev/LightHtmlTemplate/Tpl.php index 66be290..aa99ecf 100644 --- a/src/Bixev/LightHtmlTemplate/Tpl.php +++ b/src/Bixev/LightHtmlTemplate/Tpl.php @@ -730,6 +730,9 @@ protected function pregReplace($pattern, $replacement, $content, &$count = 0) */ public function render($bloc_path = '') { + if (!$this->_isInit) { + $this->pB(); + } $bloc_path = ($bloc_path == '') ? $this->bloc_limit : $bloc_path; if (!isset($this->blocs[$bloc_path])) { throw new Exception("Bloc does not exist : " . $bloc_path);