X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/afeefb526fa1db0797362edb2227739883a0b617..715ddc41f45dcf4d64348fef69844618ad1abb3d:/src/BIFE/Page.php diff --git a/src/BIFE/Page.php b/src/BIFE/Page.php index 7f8fa30..0bff2f9 100644 --- a/src/BIFE/Page.php +++ b/src/BIFE/Page.php @@ -37,14 +37,6 @@ require_once 'BIFE/Root.php'; * @access public */ class BIFE_Page extends BIFE_Root { - /** - * Attributes. - * - * @var array $attrs - * @access protected - */ - var $attrs; - // ~X2C // +X2C Operation 15 @@ -74,7 +66,6 @@ class BIFE_Page extends BIFE_Root { function __construct($attrs) // ~X2C { parent::__construct($attrs); - $this->attrs = $attrs; } // -X2C @@ -102,18 +93,18 @@ class BIFE_Page extends BIFE_Root { /** * Returns the rendered widget as a string. * - * @param HTML_Template_Sigma &$template Template to use to render the widget. + * @param HTML_Template_HIT &$template Template to use to render the widget. * * @return string * @access public */ 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->setGroup(); + $out = $template->parse('bife_page', $this->attrs); + $template->unsetGroup(); + return $out; } // -X2C