public function replaceOutput($renderer)
 {
     if ($this->isLoggedIn()) {
         return false;
     }
     $template = Kwc_Admin::getComponentFile($this, 'Component', 'tpl');
     $renderer = new Kwf_Component_Renderer();
     $view = new Kwf_Component_View($renderer);
     $view->assign($this->getTemplateVars($renderer));
     $ret = $renderer->render($view->render($template));
     $ret = Kwf_Component_View_Renderer::replaceHtmlKwfUp($ret);
     return $ret;
 }
 public function replaceOutput($renderer)
 {
     if ($this->isLoggedIn()) {
         return false;
     }
     $form = Kwf_Component_Data_Root::getInstance()->getComponentById($this->_componentId, array('ignoreVisible' => true))->getChildComponent('-form');
     $templateVars = array();
     $templateVars['form'] = $form;
     $template = Kwc_Admin::getComponentFile($this, 'Component', 'tpl');
     $view = new Kwf_Component_View($renderer);
     $view->assign($templateVars);
     $ret = $view->render($template);
     $ret = Kwf_Component_View_Renderer::replaceHtmlKwfUp($ret);
     return $ret;
 }