]> git.llucax.com Git - software/bife/bife-all.git/blobdiff - src/BIFE/Generic.php
- Added a new simple template system: Hooks + IT = HIT.
[software/bife/bife-all.git] / src / BIFE / Generic.php
index e31d813bc1bf13e891d03e1cf630f4dd54a6a59e..1e9e06d9782f2b1a123f19038780f33c1f8a6193 100644 (file)
@@ -101,11 +101,9 @@ class BIFE_Generic extends BIFE_Container {
      */
     function render(&$template) // ~X2C
     {
-        $contents = parent::render($template);
-        $template->loadTemplateFile(get_class($this).'.html');
-        $template->setVariable($this->attrs);
-        $template->setVariable('CONTENTS', $contents);
-        return $template->get();
+        $this->attrs['CONTENTS'] = parent::render($template);
+        $template->group = '';
+        return $template->parse(get_class($this), $this->attrs);
     }
     // -X2C