$sess->getName(), 'sess_id' => $sess->getId() ); $tmpl->addGlobalVars( $global ); $params = array( 'template' => 'upload', 'template_dir' => 'test', ); $form =& gsFactory::singleton( 'patForms', $params ); $form->setAutoValidate( 'submit' ); $form->renderForm( array( 'template' => 'form', 'errorTemplateContainer' => 'formErrors', 'errorTemplate' => 'formErrors_entry' ) ); $tmpl->displayParsedTemplate( 'form' ); $values = $form->getValues(); echo "values\n
"; print_r( $values ); echo "\n"; $deb->printMessages(); $tmpl->dump(); exit; ?>