set( 'wb:lang', 'de' ); $global = array( 'sess_name' => $sess->getName(), 'sess_id' => $sess->getId() ); $tmpl->addGlobalVars( $global ); $params = array( 'template' => 'wbcmxml', 'template_dir' => 'test', ); $form =& wbFactory::singleton( 'patForms', $params ); $values = array( 'html' => <<strong stuff EOL ); $form->setValues( $values ); $form->setAutoValidate( 'submit' ); $form->renderForm( array( 'template' => 'form', 'errorTemplateContainer' => 'formErrors', 'errorTemplate' => 'formErrors_entry' ) ); $tmpl->displayParsedTemplate( 'form' ); $values = $form->getValues(); echo '
';
    echo htmlspecialchars( $values['html'] );
    echo '
'; $deb->printMessages(); // $tmpl->dump(); exit; ?>