]> git.llucax.com Git - software/bife/bife-all.git/blobdiff - src/BIFE/Page.php
- Added a new simple template system: Hooks + IT = HIT.
[software/bife/bife-all.git] / src / BIFE / Page.php
index d1ce3485e8d6bc208ecc1b40f9fa788a692c1088..1d68fa0a10acaf4cfbd79b42c16a16a92c8822b5 100644 (file)
@@ -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