X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/3658b126d4873c96dd3b08af6619795790e23ac2..2ca13aad316873633c3fd9ba59ee2f5579d90272:/src/BIFE/Page.php diff --git a/src/BIFE/Page.php b/src/BIFE/Page.php index d1ce348..1d68fa0 100644 --- a/src/BIFE/Page.php +++ b/src/BIFE/Page.php @@ -100,11 +100,9 @@ class BIFE_Page extends BIFE_Root { */ function render(&$template) // ~X2C { - $contents = parent::render($template); - $template->loadTemplateFile('bife_page.html'); - $template->setVariable($this->attrs); - $template->setVariable('CONTENTS', $contents); - return $template->get(); + $this->attrs['CONTENTS'] = parent::render($template); + $template->group = ''; + return $template->parse('bife_page', $this->attrs); } // -X2C